home *** CD-ROM | disk | FTP | other *** search
/ mail.altrad.com / 2015.02.mail.altrad.com.tar / mail.altrad.com / TEST / office german / PROPLUS.WW / PROPLSWW.CAB / MSORES.DLL / 226 / 651 < prev    next >
Extensible Markup Language  |  2006-10-26  |  126KB  |  3,425 lines

  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:r="urn:Microsoft.Search.Response" xmlns:f="urn:Microsoft.Search.Response.Form" xmlns:c="urn:Microsoft.Search.Response.Content" xmlns:d="urn:Microsoft.Search.Response.Document" xmlns:math="java:java.lang.Math" xmlns:msxsl="urn:schemas-microsoft-com:xslt">
  3. <xsl:template name="ControlFrame">
  4. <xsl:param name="pContext" />
  5. <xsl:param name="fVertical" />
  6. <xsl:if test="$pContext">
  7. <xsl:choose>
  8. <xsl:when test="$fVertical = 'true'">
  9. <element layoutChildren="vertical" expandtofillhoriz="true" id="#2057" sheet="#Indent" >
  10. <xsl:apply-templates select="$pContext"/>
  11. </element>
  12. </xsl:when>
  13. <xsl:otherwise>
  14. <element layoutChildren="flow" id="#2057" expandToFillVert="false" expandToFillHoriz="true" alignChildren="left">
  15. <xsl:apply-templates select="$pContext"/>
  16. </element>
  17. </xsl:otherwise>
  18. </xsl:choose>
  19. </xsl:if>
  20. </xsl:template>
  21. <xsl:template name="Name" />
  22. <xsl:template name="Value" />
  23. <xsl:template name="List" />
  24. <xsl:template name="Label">
  25. <xsl:param name="sText" />
  26. <xsl:param name="tRtl" />
  27. <xsl:call-template name="Text">
  28. <xsl:with-param name="tRtl" select="$tRtl" />
  29. <xsl:with-param name="sText" select="$sText" />
  30. <xsl:with-param name="fWrapping" select="'true'"/>
  31. <xsl:with-param name="fPadding" select="'none'"/>
  32. <xsl:with-param name="sType" select="'label'"/>
  33. </xsl:call-template>
  34. </xsl:template>
  35. <xsl:template name="HyperLink">
  36. <xsl:param name="idControl" />
  37. <xsl:param name="sSubmitUrl" />
  38. <xsl:param name="sTooltip" />
  39. <xsl:param name="fWrapping" />
  40. <xsl:param name="fDisabled" />
  41. <xsl:param name="fPay" />
  42. <xsl:param name="tRtl" />
  43. <xsl:param name="sText" />
  44. <xsl:param name="sName" />
  45. <xsl:param name="sAction" />
  46. <xsl:param name="sQuery" />
  47. <xsl:param name="sSubQuery" />
  48. <xsl:param name="sFont" />
  49. <xsl:variable name="sFontName" >
  50. <xsl:if test="$sFont='arial'">Arial</xsl:if>
  51. <xsl:if test="$sFont='courier'">Courier</xsl:if>
  52. <xsl:if test="$sFont='lucida console'">Lucida Console</xsl:if>
  53. <xsl:if test="$sFont='marlett'">Marlett</xsl:if>
  54. <xsl:if test="$sFont='reference'">MS Reference Specialty</xsl:if>
  55. <xsl:if test="$sFont='reference serif'">MS Reference Sans Serif</xsl:if>
  56. <xsl:if test="$sFont='serif'">MS San Serif</xsl:if>
  57. <xsl:if test="$sFont='symbol'">Symbol</xsl:if>
  58. <xsl:if test="$sFont='times'">Times</xsl:if>
  59. <xsl:if test="$sFont='wingdings'">Wingdings</xsl:if>
  60. <xsl:if test="$sFont='bookshelf symbol'">Bookshelf symbol 7</xsl:if>
  61. <xsl:if test="$sFont='gothic'">MS PGothic</xsl:if>
  62. <xsl:if test="$sFont='unicode'">Lucida Sans Unicode</xsl:if>
  63. </xsl:variable>
  64. <xsl:variable name="sAccessibleName">
  65. <xsl:choose>
  66. <xsl:when test="$sName != ''">
  67. <xsl:value-of select="$sName" />
  68. </xsl:when>
  69. <xsl:otherwise>
  70. <xsl:value-of select="$sText" />
  71. </xsl:otherwise>
  72. </xsl:choose>
  73. </xsl:variable>
  74. <element id="#2066" layoutChildren="horizontal" childrenMargin="1"  >
  75. <xsl:if test="$fWrapping = 'true'">
  76. <xsl:attribute name="expandToFillHoriz">true</xsl:attribute>
  77. </xsl:if>
  78. <xsl:if test="$fPay = 'true'">
  79. <image src=":msotcid(9761)" />
  80. </xsl:if>
  81. <xsl:choose>
  82. <xsl:when test="not($sAction) or $sAction='' or $sAction='none'">
  83. <hyperlink isAcceleratorIgnored="true" text="{$sText}" id="#2061" screenTip="{$sTooltip}" screentipFormat="best" expandToFillHoriz="true" accessibleName="{$sAccessibleName}" >
  84. <xsl:if test="$tRtl != ''">
  85. <xsl:attribute name="direction">
  86. <xsl:choose>
  87. <xsl:when test="$tRtl = 'true'">RTL</xsl:when>
  88. <xsl:when test="$tRtl = 'false'">LTR</xsl:when>
  89. </xsl:choose>
  90. </xsl:attribute>
  91. </xsl:if>
  92. <xsl:if test="$fWrapping = 'true'">
  93. <xsl:attribute name="textAlign">WrapLeft</xsl:attribute>
  94. </xsl:if>
  95. <xsl:if test="$fDisabled = 'true'">
  96. <xsl:attribute name="isEnabled">false</xsl:attribute>
  97. </xsl:if>
  98. </hyperlink>
  99. </xsl:when>
  100. <xsl:when test="$sAction='requery' or $sAction='callback'">
  101. <hyperlink isAcceleratorIgnored="true" text="{$sText}" id="#2061" screenTip="{$sTooltip}" screentipFormat="best"  expandToFillHoriz="true" accessibleName="{$sAccessibleName}"  >
  102. <xsl:if test="$sAction='requery'">
  103. <xsl:attribute name="eventHandler">RefRequeryEL</xsl:attribute>
  104. </xsl:if>
  105. <xsl:if test="$sAction='callback'">
  106. <xsl:attribute name="eventHandler">RefCallbackEL</xsl:attribute>
  107. </xsl:if>
  108. <xsl:if test="$fWrapping = 'true'">
  109. <xsl:attribute name="textAlign">WrapLeft</xsl:attribute>
  110. </xsl:if>
  111. <xsl:if test="$fDisabled = 'true'">
  112. <xsl:attribute name="isEnabled">false</xsl:attribute>
  113. </xsl:if>
  114. <xsl:if test="$tRtl != ''">
  115. <xsl:attribute name="direction">
  116. <xsl:choose>
  117. <xsl:when test="$tRtl = 'true'">RTL</xsl:when>
  118. <xsl:when test="$tRtl = 'false'">LTR</xsl:when>
  119. </xsl:choose>
  120. </xsl:attribute>
  121. </xsl:if>
  122. </hyperlink>
  123. </xsl:when>
  124. <xsl:when test="$sAction='directed' or $sAction='auto' or $sAction='category'">
  125. <hyperlink isAcceleratorIgnored="true" text="{$sText}" ID="#2061" screenTip="{$sTooltip}" eventHandler="RefGoEL" screentipFormat="best"  expandToFillHoriz="true" accessibleName="{$sAccessibleName}"  accessibleValue="{$sQuery}" fontFace="{$sFontName}">
  126. <xsl:if test="$tRtl != ''">
  127. <xsl:attribute name="direction">
  128. <xsl:choose>
  129. <xsl:when test="$tRtl = 'true'">RTL</xsl:when>
  130. <xsl:when test="$tRtl = 'false'">LTR</xsl:when>
  131. </xsl:choose>
  132. </xsl:attribute>
  133. </xsl:if>
  134. <xsl:if test="$fDisabled = 'true'">
  135. <xsl:attribute name="isEnabled">false</xsl:attribute>
  136. </xsl:if>
  137. <xsl:if test="$fWrapping = 'true'">
  138. <xsl:attribute name="textAlign">WrapLeft</xsl:attribute>
  139. </xsl:if>
  140. <xsl:attribute name="accessibleDescription">:rcstring(0x01820037L)</xsl:attribute>
  141. <label id="#2098" isAcceleratorIgnored="true" text="{$sQuery}" isVisible="false" layoutPosition="none"  />
  142. <xsl:if test="$sSubQuery != ''">
  143. <label id="#2045" isAcceleratorIgnored="true" text="{$sSubQuery}" isVisible="false" layoutPosition="none"  />
  144. </xsl:if>
  145. </hyperlink>
  146. </xsl:when>
  147. <xsl:when test="$sAction='fetch'">
  148. <hyperlink isAcceleratorIgnored="true" text="{$sText}" ID="#2061" screenTip="{$sTooltip}" screentipFormat="best" expandToFillHoriz="true" accessibleName="{$sAccessibleName}"  accessibleValue="{$sQuery}" fontFace="{$sFontName}">
  149. <xsl:if test="$tRtl != ''">
  150. <xsl:attribute name="direction">
  151. <xsl:choose>
  152. <xsl:when test="$tRtl = 'true'">RTL</xsl:when>
  153. <xsl:when test="$tRtl = 'false'">LTR</xsl:when>
  154. </xsl:choose>
  155. </xsl:attribute>
  156. </xsl:if>
  157. <xsl:if test="$fDisabled = 'true'">
  158. <xsl:attribute name="isEnabled">false</xsl:attribute>
  159. </xsl:if>
  160. <xsl:if test="$fWrapping = 'true'">
  161. <xsl:attribute name="textAlign">WrapLeft</xsl:attribute>
  162. </xsl:if>
  163. <xsl:if test="$sQuery != ''">
  164. <xsl:attribute name="eventHandler">RefNavEL</xsl:attribute>
  165. </xsl:if>
  166. </hyperlink>
  167. <xsl:if test="$sQuery != ''">
  168. <label id="#2050" isAcceleratorIgnored="true" text="{$sQuery}" isVisible="false" layoutPosition="none"  />
  169. </xsl:if>
  170. </xsl:when>
  171. </xsl:choose>
  172. <label id="#2062" isAcceleratorIgnored="true" text="{$idControl}" isVisible="false" layoutPosition="none"  />
  173. <xsl:if test="$sSubmitUrl != ''">
  174. <label id="#2063" isAcceleratorIgnored="true" text="{$sSubmitUrl}" isVisible="false" layoutPosition="none"  />
  175. </xsl:if>
  176. </element>
  177. </xsl:template>
  178. <xsl:template name="Edit">
  179. <xsl:param name="idControl" />
  180. <xsl:param name="sSubmitUrl" />
  181. <xsl:param name="sAction" />
  182. <xsl:param name="sText" />
  183. <xsl:param name="tRtl" />
  184. <xsl:param name="tRtlControl" />
  185. <xsl:param name="fDisabled" />
  186. <xsl:param name="fPassword" />
  187. <xsl:param name="sValue" />
  188. <xsl:param name="fVertical" />
  189. <xsl:param name="iWidth" />
  190. <xsl:param name="iLimit" />
  191. <xsl:variable name="sLayout">
  192. <xsl:choose>
  193. <xsl:when test="$fVertical = 'true'">vertical</xsl:when>
  194. <xsl:otherwise>flow</xsl:otherwise>
  195. </xsl:choose>
  196. </xsl:variable>
  197. <element layoutChildren="{$sLayout}" id="#2066" expandToFillHoriz="true" expandToFillVert="false" alignChildren="left">
  198. <xsl:if test="$tRtl != ''">
  199. <xsl:attribute name="readingOrder">useDirection</xsl:attribute>
  200. <xsl:attribute name="direction">
  201. <xsl:choose>
  202. <xsl:when test="$tRtl = 'true'">RTL</xsl:when>
  203. <xsl:when test="$tRtl = 'false'">LTR</xsl:when>
  204. </xsl:choose>
  205. </xsl:attribute>
  206. </xsl:if>
  207. <xsl:if test="$sText != ''">
  208. <label isAcceleratorIgnored="true" text="{$sText}" id="#2051">
  209. </label>
  210. </xsl:if>
  211. <textbox text="{$sValue}" id="#2061" maxCharacters="{$iLimit}" accessibleName="{$sText}" >
  212. <xsl:if test="$tRtlControl != ''">
  213. <xsl:attribute name="readingOrder">
  214. <xsl:choose>
  215. <xsl:when test="$tRtlControl = 'true'">RTL</xsl:when>
  216. <xsl:when test="$tRtlControl = 'false'">LTR</xsl:when>
  217. </xsl:choose>
  218. </xsl:attribute>
  219. <xsl:attribute name="direction">
  220. <xsl:choose>
  221. <xsl:when test="$tRtlControl = 'true'">RTL</xsl:when>
  222. <xsl:when test="$tRtlControl = 'false'">LTR</xsl:when>
  223. </xsl:choose>
  224. </xsl:attribute>
  225. </xsl:if>
  226. <xsl:choose>
  227. <xsl:when test="$iWidth != ''">
  228. <xsl:attribute name="width">
  229. <xsl:value-of select="$iWidth * 5" />
  230. </xsl:attribute>
  231. </xsl:when>
  232. <xsl:otherwise>
  233. <xsl:attribute name="expandToFillHoriz">true</xsl:attribute>
  234. </xsl:otherwise>
  235. </xsl:choose>
  236. <xsl:if test="$fDisabled = 'true'">
  237. <xsl:attribute name="isEnabled">false</xsl:attribute>
  238. </xsl:if>
  239. <xsl:if test="$fPassword = 'true'">
  240. <xsl:attribute name="passwordCharacter">●</xsl:attribute>
  241. </xsl:if>
  242. <xsl:if test="$sAction = 'requery'">
  243. <xsl:attribute name="eventHandler">RefRequeryEL</xsl:attribute>
  244. </xsl:if>
  245. <xsl:if test="$sAction = 'callback'">
  246. <xsl:attribute name="eventHandler">RefCallbackEL</xsl:attribute>
  247. </xsl:if>
  248. </textbox>
  249. <label id="#2062" isAcceleratorIgnored="true" text="{$idControl}" isVisible="false" layoutPosition="none" />
  250. <xsl:if test="$sSubmitUrl != ''">
  251. <label id="#2063" isAcceleratorIgnored="true" text="{$sSubmitUrl}" isVisible="false" layoutPosition="none"  />
  252. </xsl:if>
  253. </element>
  254. </xsl:template>
  255. <xsl:template name="RadioGroup">
  256. <xsl:param name="pContext" /><xsl:param name="idControl" />
  257. <xsl:param name="sSubmitUrl" />
  258. <xsl:param name="sAction" />
  259. <xsl:param name="fDisabled" />
  260. <xsl:param name="sText" />
  261. <xsl:param name="tRtl" />
  262. <xsl:param name="tRtlGroup" />
  263. <element layoutChildren="vertical" expandToFillHoriz="true" textAlign="wrapLeft" id="#2115" >
  264. <xsl:if test="$tRtlGroup != ''">
  265. <xsl:attribute name="direction">
  266. <xsl:choose>
  267. <xsl:when test="$tRtlGroup = 'true'">RTL</xsl:when>
  268. <xsl:when test="$tRtlGroup = 'false'">LTR</xsl:when>
  269. </xsl:choose>
  270. </xsl:attribute>
  271. </xsl:if>
  272. <label id="#2062" isAcceleratorIgnored="true" text="{$idControl}" isVisible="false" layoutPosition="none"  />
  273. <xsl:if test="$sText != ''">
  274. <label isAcceleratorIgnored="true" text="{$sText}" textalign="MiddleLeft" id="#2051">
  275. <xsl:if test="$tRtl != ''">
  276. <xsl:attribute name="direction">
  277. <xsl:choose>
  278. <xsl:when test="$tRtl = 'true'">RTL</xsl:when>
  279. <xsl:when test="$tRtl = 'false'">LTR</xsl:when>
  280. </xsl:choose>
  281. </xsl:attribute>
  282. </xsl:if>
  283. <xsl:if test="$fDisabled = 'true'">
  284. <xsl:attribute name="isEnabled">false</xsl:attribute>
  285. </xsl:if>
  286. </label>
  287. </xsl:if>
  288. <radiogroup layoutChildren="vertical" ID="#2061" expandToFillHoriz="true" accessibleName="{$sText}" >
  289. <xsl:if test="$fDisabled = 'true'">
  290. <xsl:attribute name="isEnabled">false</xsl:attribute>
  291. </xsl:if>
  292. <xsl:for-each select="$pContext"><xsl:apply-templates select=".">
  293. <xsl:with-param name="sAction" select="$sAction" />
  294. <xsl:with-param name="sSubmitUrl" select="$sSubmitUrl" />
  295. </xsl:apply-templates>
  296. </xsl:for-each>
  297. </radiogroup>
  298. </element>
  299. </xsl:template>
  300. <xsl:template name="RadioGroupOption">
  301. <xsl:param name="pContext" /><xsl:param name="idControl" />
  302. <xsl:param name="sSubmitUrl" />
  303. <xsl:param name="sAction" />
  304. <xsl:param name="sText" />
  305. <xsl:param name="tRtl" />
  306. <xsl:param name="fDisabled" />
  307. <xsl:param name="fChecked" />
  308. <element id="#2066" layoutChildren="vertical" expandToFillHoriz="true">
  309. <radiobutton isAcceleratorIgnored="true" text="{$sText}" ID="#2061" textAlign="WrapLeft" expandToFillHoriz="true" width="0" accessibleName="{$sText}" >
  310. <xsl:if test="$sAction = 'requery'">
  311. <xsl:attribute name="eventHandler">RefRequeryEL</xsl:attribute>
  312. </xsl:if>
  313. <xsl:if test="$sAction = 'callback'">
  314. <xsl:attribute name="eventHandler">RefCallbackEL</xsl:attribute>
  315. </xsl:if>
  316. <xsl:if test="$fDisabled = 'true'">
  317. <xsl:attribute name="isEnabled">false</xsl:attribute>
  318. </xsl:if>
  319. <xsl:if test="$fChecked = 'true'">
  320. <xsl:attribute name="isSelected">true</xsl:attribute>
  321. </xsl:if>
  322. <xsl:if test="$tRtl != ''">
  323. <xsl:attribute name="direction">
  324. <xsl:choose>
  325. <xsl:when test="$tRtl = 'true'">RTL</xsl:when>
  326. <xsl:when test="$tRtl = 'false'">LTR</xsl:when>
  327. </xsl:choose>
  328. </xsl:attribute>
  329. </xsl:if>
  330. <label id="#2062" isAcceleratorIgnored="true" text="{$idControl}" isVisible="false" layoutPosition="none"  />
  331. <xsl:if test="$sSubmitUrl != ''">
  332. <label id="#2063" isAcceleratorIgnored="true" text="{$sSubmitUrl}" isVisible="false" layoutPosition="none"  />
  333. </xsl:if>
  334. </radiobutton>
  335. <xsl:if test="$pContext">
  336. <xsl:apply-templates select="$pContext"/></xsl:if>
  337. </element>
  338. </xsl:template>
  339. <xsl:template name="CheckBox">
  340. <xsl:param name="pContext" /><xsl:param name="idControl" />
  341. <xsl:param name="sSubmitUrl" />
  342. <xsl:param name="sAction" />
  343. <xsl:param name="sText" />
  344. <xsl:param name="tRtl" />
  345. <xsl:param name="fDisabled" />
  346. <xsl:param name="fChecked" />
  347. <element id="#2066" layoutChildren="vertical" expandToFillHoriz="true">
  348. <checkbox id="#2061" isAcceleratorIgnored="true" text="{$sText}" textAlign="WrapLeft" accessibleName="{$sText}" >
  349. <xsl:if test="$sAction = 'requery'">
  350. <xsl:attribute name="eventHandler">RefRequeryEL</xsl:attribute>
  351. </xsl:if>
  352. <xsl:if test="$sAction = 'callback'">
  353. <xsl:attribute name="eventHandler">RefCallbackEL</xsl:attribute>
  354. </xsl:if>
  355. <xsl:if test="$fDisabled = 'true'">
  356. <xsl:attribute name="isEnabled">false</xsl:attribute>
  357. </xsl:if>
  358. <xsl:if test="$fChecked = 'true'">
  359. <xsl:attribute name="isChecked">true</xsl:attribute>
  360. </xsl:if>
  361. <xsl:if test="$sText = ''">
  362. <xsl:attribute name="focusRect">none</xsl:attribute>
  363. </xsl:if>
  364. <xsl:if test="$tRtl != ''">
  365. <xsl:attribute name="direction">
  366. <xsl:choose>
  367. <xsl:when test="$tRtl = 'true'">RTL</xsl:when>
  368. <xsl:when test="$tRtl = 'false'">LTR</xsl:when>
  369. </xsl:choose>
  370. </xsl:attribute>
  371. </xsl:if>
  372. </checkbox>
  373. <label id="#2062" isAcceleratorIgnored="true" text="{$idControl}" isVisible="false" layoutPosition="none" />
  374. <xsl:if test="$sSubmitUrl != ''">
  375. <label id="#2063" isAcceleratorIgnored="true" text="{$sSubmitUrl}" isVisible="false" layoutPosition="none"  />
  376. </xsl:if>
  377. <xsl:if test="$pContext"><xsl:apply-templates select="$pContext"/>
  378. </xsl:if>
  379. </element>
  380. </xsl:template>
  381. <xsl:template name="ListBox">
  382. <xsl:param name="pContext" /><xsl:param name="idControl" />
  383. <xsl:param name="sSubmitUrl" />
  384. <xsl:param name="sAction" />
  385. <xsl:param name="sText" />
  386. <xsl:param name="tRtl" />
  387. <xsl:param name="tRtlControl" />
  388. <xsl:param name="fDropdown" />
  389. <xsl:param name="fVertical" />
  390. <xsl:param name="fDisabled" />
  391. <xsl:param name="iWidth" />
  392. <xsl:variable name="sLayout">
  393. <xsl:choose>
  394. <xsl:when test="$fVertical = 'true'">vertical</xsl:when>
  395. <xsl:otherwise>flow</xsl:otherwise>
  396. </xsl:choose>
  397. </xsl:variable>
  398. <element layoutChildren="{$sLayout}" id="#2065">
  399. <xsl:if test="$tRtl != ''">
  400. <xsl:attribute name="direction">
  401. <xsl:choose>
  402. <xsl:when test="$tRtl = 'true'">RTL</xsl:when>
  403. <xsl:when test="$tRtl = 'false'">LTR</xsl:when>
  404. </xsl:choose>
  405. </xsl:attribute>
  406. </xsl:if>
  407. <xsl:choose>
  408. <xsl:when test="$iWidth='' or not($iWidth)">
  409. <xsl:attribute name="expandToFillHoriz">true</xsl:attribute>
  410. </xsl:when>
  411. <xsl:otherwise>
  412. <xsl:attribute name="expandToFillHoriz">false</xsl:attribute>
  413. </xsl:otherwise>
  414. </xsl:choose>
  415. <xsl:if test="$fDropdown = 'true'">
  416. <xsl:attribute name="alignChildren">left</xsl:attribute>
  417. </xsl:if>
  418. <xsl:if test="$sText != ''">
  419. <label isAcceleratorIgnored="true" text="{$sText}" id="#2051">
  420. <xsl:if test="$tRtl != ''">
  421. <xsl:attribute name="direction">
  422. <xsl:choose>
  423. <xsl:when test="$tRtl = 'true'">RTL</xsl:when>
  424. <xsl:when test="$tRtl = 'false'">LTR</xsl:when>
  425. </xsl:choose>
  426. </xsl:attribute>
  427. </xsl:if>
  428. </label>
  429. </xsl:if>
  430. <xsl:choose>
  431. <xsl:when test="$fDropdown = 'true'">
  432. <dropDown id="#2061" listHeight="20" accessibleName="{$sText}" applyIntermediateSelections="false">
  433. <xsl:if test="$tRtlControl != ''">
  434. <xsl:attribute name="direction">
  435. <xsl:choose>
  436. <xsl:when test="$tRtlControl = 'true'">RTL</xsl:when>
  437. <xsl:when test="$tRtlControl = 'false'">LTR</xsl:when>
  438. </xsl:choose>
  439. </xsl:attribute>
  440. </xsl:if>
  441. <xsl:choose>
  442. <xsl:when test="$iWidth='' or not($iWidth)">
  443. <xsl:attribute name="expandToFillHoriz">true</xsl:attribute>
  444. </xsl:when>
  445. <xsl:otherwise>
  446. <xsl:attribute name="expandToFillHoriz">false</xsl:attribute>
  447. <xsl:attribute name="width">
  448. <xsl:value-of select="$iWidth * 5" />
  449. </xsl:attribute>
  450. </xsl:otherwise>
  451. </xsl:choose>
  452. <xsl:if test="$sAction = 'requery'">
  453. <xsl:attribute name="eventHandler">RefRequeryEL</xsl:attribute>
  454. </xsl:if>
  455. <xsl:if test="$sAction = 'callback'">
  456. <xsl:attribute name="eventHandler">RefCallbackEL</xsl:attribute>
  457. </xsl:if>
  458. <xsl:if test="$fDisabled = 'true'">
  459. <xsl:attribute name="isEnabled">false</xsl:attribute>
  460. </xsl:if>
  461. <xsl:if test="$pContext">
  462. <xsl:apply-templates select="$pContext"/></xsl:if>
  463. </dropDown>
  464. </xsl:when>
  465. <xsl:otherwise>
  466. <listBox id="#2061" listHeight="5" accessibleName="{$sText}" >
  467. <xsl:if test="$tRtlControl != ''">
  468. <xsl:attribute name="direction">
  469. <xsl:choose>
  470. <xsl:when test="$tRtlControl = 'true'">RTL</xsl:when>
  471. <xsl:when test="$tRtlControl = 'false'">LTR</xsl:when>
  472. </xsl:choose>
  473. </xsl:attribute>
  474. </xsl:if>
  475. <xsl:choose>
  476. <xsl:when test="$iWidth='' or not($iWidth)">
  477. <xsl:attribute name="expandToFillHoriz">true</xsl:attribute>
  478. </xsl:when>
  479. <xsl:otherwise>
  480. <xsl:attribute name="expandToFillHoriz">false</xsl:attribute>
  481. <xsl:attribute name="width">
  482. <xsl:value-of select="$iWidth * 5" />
  483. </xsl:attribute>
  484. </xsl:otherwise>
  485. </xsl:choose>
  486. <xsl:if test="$fDisabled = 'true'">
  487. <xsl:attribute name="isEnabled">false</xsl:attribute>
  488. </xsl:if>
  489. <xsl:if test="$sAction = 'requery'">
  490. <xsl:attribute name="eventHandler">RefRequeryEL</xsl:attribute>
  491. </xsl:if>
  492. <xsl:if test="$sAction = 'callback'">
  493. <xsl:attribute name="eventHandler">RefCallbackEL</xsl:attribute>
  494. </xsl:if>
  495. <xsl:if test="$pContext">
  496. <xsl:apply-templates select="$pContext"/></xsl:if>
  497. </listBox>
  498. </xsl:otherwise>
  499. </xsl:choose>
  500. <label id="#2062" isAcceleratorIgnored="true" text="{$idControl}" isVisible="false" layoutPosition="none"  />
  501. <xsl:if test="$sSubmitUrl != ''">
  502. <label id="#2063" isAcceleratorIgnored="true" text="{$sSubmitUrl}" isVisible="false" layoutPosition="none"  />
  503. </xsl:if>
  504. </element>
  505. </xsl:template>
  506. <xsl:template name="ListBoxOption">
  507. <xsl:param name="idControl" />
  508. <xsl:param name="sText" />
  509. <xsl:param name="fSelected" />
  510. <xsl:param name="iLevel" />
  511. <listItem isAcceleratorIgnored="true" text="{$sText}" value="{$idControl}">
  512. <xsl:if test="$fSelected = 'true'">
  513. <xsl:attribute name="isSelected">true</xsl:attribute>
  514. </xsl:if>
  515. <xsl:attribute name="text">
  516. <xsl:choose>
  517. <xsl:when test="$iLevel= 2">
  518. <xsl:text> </xsl:text>
  519. </xsl:when>
  520. <xsl:when test="$iLevel = 3">
  521. <xsl:text> </xsl:text>
  522. </xsl:when>
  523. </xsl:choose>
  524. <xsl:value-of select="$sText" />
  525. </xsl:attribute>
  526. </listItem>
  527. </xsl:template>
  528. <xsl:template name="Button">
  529. <xsl:param name="idControl" />
  530. <xsl:param name="sSubmitUrl" />
  531. <xsl:param name="sAction" />
  532. <xsl:param name="sText" />
  533. <xsl:param name="tRtl" />
  534. <xsl:param name="sIcon" />
  535. <xsl:param name="fDisabled" />
  536. <xsl:param name="sTooltip" />
  537. <element id="#2066">
  538. <xsl:choose>
  539. <xsl:when test="$sIcon = 'go'">
  540. <SearchButton id="#2061" screenTip="{$sTooltip}" screentipFormat="best"  >
  541. <xsl:if test="$sAction = 'requery'">
  542. <xsl:attribute name="eventHandler">RefRequeryEL</xsl:attribute>
  543. </xsl:if>
  544. <xsl:if test="$sAction = 'callback'">
  545. <xsl:attribute name="eventHandler">RefCallbackEL</xsl:attribute>
  546. </xsl:if>
  547. <xsl:if test="$fDisabled = 'true'">
  548. <xsl:attribute name="isEnabled">false</xsl:attribute>
  549. </xsl:if>
  550. <xsl:choose>
  551. <xsl:when test="$sText != ''">
  552. <xsl:attribute name="accessibleName">
  553. <xsl:value-of select="$sText" />
  554. </xsl:attribute>
  555. </xsl:when>
  556. <xsl:otherwise>
  557. <xsl:attribute name="accessibleName">:rcstring(0x01820033L)</xsl:attribute>
  558. </xsl:otherwise>
  559. </xsl:choose>
  560. </SearchButton>
  561. </xsl:when>
  562. <xsl:otherwise>
  563. <button textAlign="EndEllipsis" isAcceleratorIgnored="true" text="{$sText}" expandToFillHoriz="false" id="#2061" screenTip="{$sTooltip}" screentipFormat="best" accessibleName="{$sTooltip}" >
  564. <xsl:if test="$tRtl != ''">
  565. <xsl:attribute name="direction">
  566. <xsl:choose>
  567. <xsl:when test="$tRtl = 'true'">RTL</xsl:when>
  568. <xsl:when test="$tRtl = 'false'">LTR</xsl:when>
  569. </xsl:choose>
  570. </xsl:attribute>
  571. </xsl:if>
  572. <xsl:if test="$sAction = 'requery'">
  573. <xsl:attribute name="eventHandler">RefRequeryEL</xsl:attribute>
  574. </xsl:if>
  575. <xsl:if test="$sAction = 'callback'">
  576. <xsl:attribute name="eventHandler">RefCallbackEL</xsl:attribute>
  577. </xsl:if>
  578. <xsl:if test="$fDisabled = 'true'">
  579. <xsl:attribute name="isEnabled">false</xsl:attribute>
  580. </xsl:if>
  581. </button>
  582. </xsl:otherwise>
  583. </xsl:choose>
  584. <label id="#2062" isAcceleratorIgnored="true" text="{$idControl}" isVisible="false" layoutPosition="none" />
  585. <xsl:if test="$sSubmitUrl != ''">
  586. <label id="#2063" isAcceleratorIgnored="true" text="{$sSubmitUrl}" isVisible="false" layoutPosition="none"  />
  587. </xsl:if>
  588. </element>
  589. </xsl:template>
  590. <xsl:template name="Form">
  591. <xsl:param name="pContext" /><xsl:param name="sRevision" /><xsl:param name="sBuild" /><xsl:param name="tRtl" />
  592. <xsl:param name="fPropagate" />
  593. <xsl:param name="fSeparator" />
  594. <element layoutChildren="vertical" padding="0,2,0,0" sheet="#Orientation" class="#2049">
  595. <xsl:choose>
  596. <xsl:when test="$fPropagate = 'true'">
  597. <xsl:attribute name="id">#2095</xsl:attribute>
  598. </xsl:when>
  599. <xsl:otherwise>
  600. <xsl:attribute name="id">#2094</xsl:attribute>
  601. </xsl:otherwise>
  602. </xsl:choose>
  603. <xsl:if test="$tRtl != ''">
  604. <xsl:attribute name="direction">
  605. <xsl:choose>
  606. <xsl:when test="$tRtl = 'true'">RTL</xsl:when>
  607. <xsl:when test="$tRtl = 'false'">LTR</xsl:when>
  608. </xsl:choose>
  609. </xsl:attribute>
  610. </xsl:if>
  611. <xsl:if test="$pContext" >
  612. <xsl:apply-templates select="$pContext" /></xsl:if>
  613. <xsl:if test="$fSeparator = 'true'">
  614. <xsl:call-template name="HR" >
  615. <xsl:with-param name="fConditional" select="'true'" />
  616. </xsl:call-template>
  617. </xsl:if>
  618. </element>
  619. </xsl:template>
  620. <xsl:template name="ContentCallback">
  621. <xsl:param name="idService" />
  622. <xsl:param name="spCallback" />
  623. <xsl:param name="spContext" />
  624. <xsl:param name="iStart"  />
  625. <xsl:param name="cSize"  />
  626. <xsl:param name="cMax"  />
  627. <xsl:choose>
  628. <xsl:when test="$spCallback='ResponseResults'">
  629. <element id="#2000" sheet="#Orientation" class="#2000" expandToFillHoriz="true">
  630. <element layoutChildren="vertical" id="#2049" sheet="#Orientation" class="#2094" >
  631. <xsl:call-template name="ResponseResults" >
  632. <xsl:with-param name="idService" select="$idService" />
  633. <xsl:with-param name="iCaller"   select="'1'" />
  634. <xsl:with-param name="iStart" select="$iStart" />
  635. <xsl:with-param name="cSize" select="$cSize" />
  636. <xsl:with-param name="cMax" select="$cMax" />
  637. </xsl:call-template>
  638. </element>
  639. <element layoutChildren="vertical" expandToFillHoriz="true" id="#2048" >
  640. <xsl:call-template name="ResponseResults" >
  641. <xsl:with-param name="idService" select="$idService" />
  642. <xsl:with-param name="iCaller"   select="'2'" />
  643. <xsl:with-param name="iStart" select="$iStart" />
  644. <xsl:with-param name="cSize" select="$cSize" />
  645. <xsl:with-param name="cMax" select="$cMax" />
  646. </xsl:call-template>
  647. </element>
  648. </element>
  649. </xsl:when>
  650. </xsl:choose>
  651. </xsl:template>
  652. <xsl:template name="HR">
  653. <xsl:param name="fConditional" />
  654. <xsl:variable name="idCondition">
  655. <xsl:if test="$fConditional = 'true'">#2049</xsl:if>
  656. </xsl:variable>
  657. <line id="#2086" sheet="#Orientation" class="{$idCondition}" expandToFillHoriz="true" padding="0,6,0,2" />
  658. </xsl:template>
  659. <xsl:template name="ContentHyperLink">
  660. <xsl:param name="sText" />
  661. <xsl:param name="sTooltip" />
  662. <xsl:param name="sUrl" />
  663. <xsl:param name="sFont" />
  664. <xsl:param name="fPay" />
  665. <xsl:param name="tRtl" />
  666. <xsl:param name="fWrapping" />
  667. <xsl:call-template name="HyperLink" >
  668. <xsl:with-param name="sTooltip" select="$sTooltip" />
  669. <xsl:with-param name="sText" select="$sText" />
  670. <xsl:with-param name="sQuery" select="$sUrl" />
  671. <xsl:with-param name="sAction" select="'fetch'" />
  672. <xsl:with-param name="sFont" select="$sFont" />
  673. <xsl:with-param name="fPay" select="$fPay" />
  674. <xsl:with-param name="tRtl" select="$tRtl" />
  675. <xsl:with-param name="fWrapping" select="$fWrapping" />
  676. </xsl:call-template>
  677. </xsl:template>
  678. <xsl:template name="ContentNewQuery">
  679. <xsl:param name="sText" />
  680. <xsl:param name="sTooltip" />
  681. <xsl:param name="sFont" />
  682. <xsl:param name="sQuery" />
  683. <xsl:param name="sCategory" />
  684. <xsl:param name="tRtl" />
  685. <xsl:param name="fWrapping" />
  686. <xsl:param name="sAction" />
  687. <xsl:call-template name="HyperLink">
  688. <xsl:with-param name="sTooltip" select="$sTooltip" />
  689. <xsl:with-param name="sQuery" select="$sQuery" />
  690. <xsl:with-param name="sSubQuery" select="$sCategory" />
  691. <xsl:with-param name="sFont" select="$sFont" />
  692. <xsl:with-param name="fWrapping" select="$fWrapping" />
  693. <xsl:with-param name="sAction" select="$sAction" />
  694. <xsl:with-param name="tRtl" select="$tRtl" />
  695. <xsl:with-param name="sText" select="$sText" />
  696. </xsl:call-template>
  697. </xsl:template>
  698. <xsl:template name="Insert">
  699. <xsl:param name="sText" />
  700. <xsl:param name="psData1" />
  701. <xsl:param name="psData2" />
  702. <button id="#2105"  isAcceleratorIgnored="true" text="{$sText}" eventHandler="RefActionEL" >
  703. <xsl:choose>
  704. <xsl:when test="$psData1">
  705. <xsl:for-each select="$psData1">
  706. <label isAcceleratorIgnored="true" isVisible="false"  id="#2085" layoutPosition="none" >
  707. <xsl:attribute name="text">
  708. <xsl:value-of select="."/>
  709. </xsl:attribute>
  710. </label>
  711. </xsl:for-each>
  712. </xsl:when>
  713. <xsl:when test="$psData2">
  714. <xsl:for-each select="$psData2">
  715. <label isAcceleratorIgnored="true" isVisible="false"  id="#2085" layoutPosition="none" >
  716. <xsl:attribute name="text">
  717. <xsl:value-of select="."/>
  718. </xsl:attribute>
  719. </label>
  720. </xsl:for-each>
  721. </xsl:when>
  722. </xsl:choose>
  723. </button>
  724. </xsl:template>
  725. <xsl:template name="Copy">
  726. <xsl:param name="sText" />
  727. <xsl:param name="psData1" />
  728. <xsl:param name="psData2" />
  729. <button id="#2104" isAcceleratorIgnored="true" text="{$sText}" eventHandler="RefActionEL"  >
  730. <xsl:choose>
  731. <xsl:when test="$psData1">
  732. <xsl:for-each select="$psData1">
  733. <label isAcceleratorIgnored="true" isVisible="false"  id="#2085" layoutPosition="none" >
  734. <xsl:attribute name="text">
  735. <xsl:value-of select="."/>
  736. </xsl:attribute>
  737. </label>
  738. </xsl:for-each>
  739. </xsl:when>
  740. <xsl:when test="$psData2">
  741. <xsl:for-each select="$psData2">
  742. <label isAcceleratorIgnored="true" isVisible="false"  id="#2085" layoutPosition="none" >
  743. <xsl:attribute name="text">
  744. <xsl:value-of select="."/>
  745. </xsl:attribute>
  746. </label>
  747. </xsl:for-each>
  748. </xsl:when>
  749. </xsl:choose>
  750. </button>
  751. </xsl:template>
  752. <xsl:template name="Tabular">
  753. <xsl:param name="pContext" />
  754. <xsl:param name="sTitle" />
  755. <xsl:choose>
  756. <xsl:when test="$sTitle = '' or not($sTitle)">
  757. <xsl:apply-templates select="$pContext" />
  758. </xsl:when>
  759. <xsl:otherwise>
  760. <groupBox sheet="#H2" id="#2121" expandToFillHoriz="true" indentBy="0">
  761. <groupHeader isAcceleratorIgnored="true" text="{$sTitle}" id="#2091" textAlign="WrapLeft" expandToFillVert="false" expandToFillHoriz="true"/>
  762. <groupContent layoutChildren="vertical" id="#2052" expandToFillHoriz="true" padding="0,0,0,0" indentBy="0">
  763. <xsl:apply-templates select="$pContext" />
  764. </groupContent>
  765. </groupBox>
  766. </xsl:otherwise>
  767. </xsl:choose>
  768. </xsl:template>
  769. <xsl:template name="Record">
  770. <xsl:param name="tRtl" />
  771. <xsl:param name="sName" />
  772. <xsl:param name="fNameBold" />
  773. <xsl:param name="tNameRtl" />
  774. <xsl:param name="sValue" />
  775. <xsl:param name="fValueBold" />
  776. <xsl:param name="tValueRtl" />
  777. <xsl:param name="fBorders" />
  778. <xsl:param name="pAction" /><xsl:param name="fAction" />
  779. <xsl:param name="fDefaultAllowed" />
  780. <xsl:variable name="rcBorderThickness" >
  781. <xsl:choose>
  782. <xsl:when test="$fBorders = 'false'">0,0,0,0</xsl:when>
  783. <xsl:otherwise>0,0,0,1</xsl:otherwise>
  784. </xsl:choose>
  785. </xsl:variable>
  786. <xsl:choose>
  787. <xsl:when test="$fAction = 'true'">
  788. <xsl:variable name="sAccessibleName">
  789. <xsl:value-of select="$sName" />
  790. <xsl:text> </xsl:text>
  791. <xsl:value-of select="$sValue" />
  792. </xsl:variable>
  793. <pcc id="#2077" accessibleName="{$sAccessibleName}" >
  794. <xsl:if test="$fDefaultAllowed = 'true'">
  795. <xsl:attribute name="eventHandler">MsoPccContentContextHandler;RefActionEL</xsl:attribute>
  796. </xsl:if>
  797. <pccContent>
  798. <element layoutChildren="horizontal" expandtofillhoriz="true" id="#2057" distributeChildren="true" borderThickness="{$rcBorderThickness}">
  799. <xsl:if test="$tRtl != ''">
  800. <xsl:attribute name="direction">
  801. <xsl:choose>
  802. <xsl:when test="$tRtl = 'true'">RTL</xsl:when>
  803. <xsl:when test="$tRtl = 'false'">LTR</xsl:when>
  804. </xsl:choose>
  805. </xsl:attribute>
  806. </xsl:if>
  807. <xsl:if test="$sName != '' and $sName">
  808. <label text="{$sName}">
  809. <xsl:attribute name="fontWeight">
  810. <xsl:choose>
  811. <xsl:when test="$fNameBold = 'true'">bold</xsl:when>
  812. <xsl:otherwise>normal</xsl:otherwise>
  813. </xsl:choose>
  814. </xsl:attribute>
  815. <xsl:if test="$tNameRtl != ''">
  816. <xsl:attribute name="direction">
  817. <xsl:choose>
  818. <xsl:when test="$tNameRtl = 'true'">RTL</xsl:when>
  819. <xsl:when test="$tNameRtl = 'false'">LTR</xsl:when>
  820. </xsl:choose>
  821. </xsl:attribute>
  822. </xsl:if>
  823. <xsl:if test="not($sValue)">
  824. <xsl:attribute name="textAlign">EndEllipsis</xsl:attribute>
  825. </xsl:if>
  826. </label>
  827. </xsl:if>
  828. <xsl:if test="$sValue != '' and $sValue">
  829. <label text="{$sValue}">
  830. <xsl:attribute name="fontWeight">
  831. <xsl:choose>
  832. <xsl:when test="$fValueBold = 'true'">bold</xsl:when>
  833. <xsl:otherwise>normal</xsl:otherwise>
  834. </xsl:choose>
  835. </xsl:attribute>
  836. <xsl:if test="$tValueRtl != ''">
  837. <xsl:attribute name="direction">
  838. <xsl:choose>
  839. <xsl:when test="$tValueRtl = 'true'">RTL</xsl:when>
  840. <xsl:when test="$tValueRtl = 'false'">LTR</xsl:when>
  841. </xsl:choose>
  842. </xsl:attribute>
  843. </xsl:if>
  844. <xsl:if test="not($sName)">
  845. <xsl:attribute name="textAlign">EndEllipsis</xsl:attribute>
  846. </xsl:if>
  847. </label>
  848. </xsl:if>
  849. </element>
  850. </pccContent>
  851. <xsl:apply-templates select="$pAction" /></pcc>
  852. </xsl:when>
  853. <xsl:otherwise>
  854. <element layoutChildren="horizontal" padding="2,0,2,0" expandtofillhoriz="true" id="#2057" distributeChildren="true" borderThickness="{$rcBorderThickness}">
  855. <xsl:if test="$tRtl != ''">
  856. <xsl:attribute name="direction">
  857. <xsl:choose>
  858. <xsl:when test="$tRtl = 'true'">RTL</xsl:when>
  859. <xsl:when test="$tRtl = 'false'">LTR</xsl:when>
  860. </xsl:choose>
  861. </xsl:attribute>
  862. </xsl:if>
  863. <xsl:if test="$sName != '' and $sName">
  864. <xsl:call-template name="Text">
  865. <xsl:with-param name="tStrong" select="$fNameBold" />
  866. <xsl:with-param name="sText" select="$sName" />
  867. <xsl:with-param name="fWrapping" select="'false'" />
  868. <xsl:with-param name="fPadding" select="'false'" />
  869. <xsl:with-param name="sType" select="'record'" />
  870. <xsl:with-param name="tRtl" select="$tNameRtl" />
  871. </xsl:call-template>
  872. </xsl:if>
  873. <xsl:if test="$sValue != '' and $sValue">
  874. <xsl:call-template name="Text">
  875. <xsl:with-param name="tStrong" select="$fValueBold" />
  876. <xsl:with-param name="sText" select="$sValue" />
  877. <xsl:with-param name="fWrapping" select="'false'" />
  878. <xsl:with-param name="fPadding" select="'false'" />
  879. <xsl:with-param name="sType" select="'record'" />
  880. <xsl:with-param name="tRtl" select="$tValueRtl" />
  881. </xsl:call-template>
  882. </xsl:if>
  883. </element>
  884. </xsl:otherwise>
  885. </xsl:choose>
  886. </xsl:template>
  887. <xsl:template name="Image">
  888. <xsl:param name="sTooltip" />
  889. <xsl:param name="sAltText" />
  890. <xsl:param name="sSource" />
  891. <xsl:param name="fIcon" />
  892. <xsl:choose>
  893. <xsl:when test="$sSource='Spelling' and $fIcon = 'true'">
  894. <image screenTip="{$sTooltip}" screentipFormat="best" src=":msotcid(2)" accessibleName="{$sAltText}" id="#2123" />
  895. </xsl:when>
  896. <xsl:when test="$sSource='FileSearch' and $fIcon = 'true'">
  897. <image screenTip="{$sTooltip}" screentipFormat="best" src=":msotcid(5905)" accessibleName="{$sAltText}" id="#2123" />
  898. </xsl:when>
  899. <xsl:when test="$sSource='Research' and $fIcon = 'true'">
  900. <image screenTip="{$sTooltip}" screentipFormat="best" src=":msotcid(7343)" accessibleName="{$sAltText}" id="#2123" />
  901. </xsl:when>
  902. <xsl:when test="$sSource='ClipArt' and $fIcon = 'true'">
  903. <image screenTip="{$sTooltip}" screentipFormat="best" src=":msotcid(6579)" accessibleName="{$sAltText}" id="#2123" />
  904. </xsl:when>
  905. <xsl:when test="$sSource='Help' and $fIcon = 'true'">
  906. <image screenTip="{$sTooltip}" screentipFormat="best" src=":msotcid(983)" accessibleName="{$sAltText}" id="#2123" />
  907. </xsl:when>
  908. <xsl:when test="$sSource='MSN' and $fIcon = 'true'">
  909. <image screenTip="{$sTooltip}" screentipFormat="best" src=":msotcid(9678)" accessibleName="{$sAltText}" id="#2123" />
  910. </xsl:when>
  911. <xsl:when test="$fIcon = 'true'">
  912. <imageExt screenTip="{$sTooltip}" screentipFormat="best" fileName="{$sSource}" accessibleName="{$sAltText}" id="#2123" />
  913. </xsl:when>
  914. <xsl:otherwise>
  915. <imageURL screenTip="{$sTooltip}" screentipFormat="best" URL="{$sSource}" accessibleName="{$sAltText}" id="#2123" />
  916. </xsl:otherwise>
  917. </xsl:choose>
  918. </xsl:template>
  919. <xsl:template name="Text">
  920. <xsl:param name="pContext" /><xsl:param name="sText" />
  921. <xsl:param name="tStrong" />
  922. <xsl:param name="tEmphasis" />
  923. <xsl:param name="tUnderline" />
  924. <xsl:param name="tSmallcaps" />
  925. <xsl:param name="tSuperscript" />
  926. <xsl:param name="tSubscript" />
  927. <xsl:param name="tLight" />
  928. <xsl:param name="fWrapping" />
  929. <xsl:param name="sFont" />
  930. <xsl:param name="fPadding" />
  931. <xsl:param name="sAlignment" />
  932. <xsl:param name="tRtl" />
  933. <xsl:param name="pAction" /><xsl:param name="sType" />
  934. <xsl:variable name="rgchProps">
  935. <xsl:if test="$sFont='normal'">0</xsl:if>
  936. <xsl:if test="$sFont='unicode'">0</xsl:if>
  937. <xsl:if test="$sFont='arial'">1</xsl:if>
  938. <xsl:if test="$sFont='courier'">2</xsl:if>
  939. <xsl:if test="$sFont='lucida console'">3</xsl:if>
  940. <xsl:if test="$sFont='marlett'">4</xsl:if>
  941. <xsl:if test="$sFont='reference'">5</xsl:if>
  942. <xsl:if test="$sFont='reference serif'">6</xsl:if>
  943. <xsl:if test="$sFont='serif'">7</xsl:if>
  944. <xsl:if test="$sFont='symbol'">8</xsl:if>
  945. <xsl:if test="$sFont='times'">9</xsl:if>
  946. <xsl:if test="$sFont='wingdings'">w</xsl:if>
  947. <xsl:if test="$sFont='bookshelf symbol'">k</xsl:if>
  948. <xsl:if test="$sFont='gothic'">W</xsl:if>
  949. <xsl:if test="$sFont='unicode'">z</xsl:if>
  950. <xsl:if test="$tSmallcaps='true'">m</xsl:if>
  951. <xsl:if test="$tSmallcaps='false'">M</xsl:if>
  952. <xsl:if test="$tSuperscript='true'">s</xsl:if>
  953. <xsl:if test="$tSuperscript='false'">S</xsl:if>
  954. <xsl:if test="$tSubscript='true'">c</xsl:if>
  955. <xsl:if test="$tSubscript='false'">C</xsl:if>
  956. <xsl:if test="$tUnderline='true'">u</xsl:if>
  957. <xsl:if test="$tUnderline='false'">U</xsl:if>
  958. <xsl:if test="$tStrong='true'">b</xsl:if>
  959. <xsl:if test="$tStrong='false'">B</xsl:if>
  960. <xsl:if test="$tEmphasis='true'">i</xsl:if>
  961. <xsl:if test="$tEmphasis='false'">I</xsl:if>
  962. <xsl:if test="$tLight='true'">g</xsl:if>
  963. <xsl:if test="$tLight='false'">G</xsl:if>
  964. <xsl:if test="$tRtl='true'">
  965. <xsl:choose>
  966. <xsl:when test="$sType='nested'">r</xsl:when>
  967. <xsl:otherwise>l</xsl:otherwise>
  968. </xsl:choose>
  969. </xsl:if>
  970. <xsl:if test="$tRtl='false'">
  971. <xsl:choose>
  972. <xsl:when test="$sType='nested'">R</xsl:when>
  973. <xsl:otherwise>L</xsl:otherwise>
  974. </xsl:choose>
  975. </xsl:if>
  976. </xsl:variable>
  977. <xsl:variable name="sTextAlign">
  978. <xsl:choose>
  979. <xsl:when test="$fWrapping='ellipsis'">EngEllipsis</xsl:when>
  980. <xsl:when test="$fWrapping='true' and $sAlignment='right'">WrapRight</xsl:when>
  981. <xsl:when test="$fWrapping='true' ">WrapLeft</xsl:when>
  982. <xsl:when test="$sAlignment='right'">MiddleRight</xsl:when>
  983. <xsl:otherwise>MiddleLeft</xsl:otherwise>
  984. </xsl:choose>
  985. </xsl:variable>
  986. <xsl:choose>
  987. <xsl:when test="$sType='paragraph'">
  988. <Content textAlign="{$sTextAlign}" indentBy="2" lowerBy="4" id="#2118">
  989. <xsl:if test="$tRtl != ''">
  990. <xsl:attribute name="readingOrder">useDirection</xsl:attribute>
  991. <xsl:attribute name="direction">
  992. <xsl:choose>
  993. <xsl:when test="$tRtl = 'true'">RTL</xsl:when>
  994. <xsl:when test="$tRtl = 'false'">LTR</xsl:when>
  995. </xsl:choose>
  996. </xsl:attribute>
  997. </xsl:if>
  998. <xsl:attribute name="ContentText">
  999. <xsl:if test="$rgchProps!=''">
  1000. <xsl:text><P a="</xsl:text>
  1001. <xsl:value-of select="$rgchProps" />
  1002. <xsl:text>"></xsl:text>
  1003. </xsl:if>
  1004. <xsl:apply-templates select="$pContext" /><xsl:if test="$rgchProps!=''">
  1005. <xsl:text></P></xsl:text>
  1006. </xsl:if>
  1007. </xsl:attribute>
  1008. </Content>
  1009. <xsl:if test="$pAction">
  1010. <element layoutChildren="flow" id="#2120" >
  1011. <xsl:apply-templates select="$pAction" /></element>
  1012. </xsl:if>
  1013. </xsl:when>
  1014. <xsl:when test="$sType='nested'">
  1015. <xsl:if test="$fPadding!='false' and $fPadding!='none' and $fPadding!='first'">
  1016. <xsl:text> </xsl:text>
  1017. </xsl:if>
  1018. <xsl:if test="$rgchProps!=''">
  1019. <xsl:text><C a="</xsl:text>
  1020. <xsl:value-of select="$rgchProps" />
  1021. <xsl:text>"></xsl:text>
  1022. </xsl:if>
  1023. <xsl:value-of select="$sText" />
  1024. <xsl:if test="$pContext">
  1025. <xsl:apply-templates select="$pContext" /></xsl:if>
  1026. <xsl:if test="$rgchProps!=''">
  1027. <xsl:text></C></xsl:text>
  1028. </xsl:if>
  1029. </xsl:when>
  1030. <xsl:otherwise>
  1031. <xsl:variable name="iIndent">
  1032. <xsl:choose>
  1033. <xsl:when test="$fPadding!='false' and $fPadding!='none' and $fPadding!='first'">2</xsl:when>
  1034. <xsl:when test="$fPadding='first'">2</xsl:when>
  1035. <xsl:otherwise>0</xsl:otherwise>
  1036. </xsl:choose>
  1037. </xsl:variable>
  1038. <xsl:element name="Content">
  1039. <xsl:attribute name="textAlign">
  1040. <xsl:value-of select="$sTextAlign" />
  1041. </xsl:attribute>
  1042. <xsl:attribute name="lowerBy">1</xsl:attribute>
  1043. <xsl:attribute name="id">#2118</xsl:attribute>
  1044. <xsl:attribute name="indentBy">
  1045. <xsl:value-of select="$iIndent"/>
  1046. </xsl:attribute>
  1047. <xsl:if test="$tRtl != ''">
  1048. <xsl:attribute name="readingOrder">useDirection</xsl:attribute>
  1049. <xsl:attribute name="direction">
  1050. <xsl:choose>
  1051. <xsl:when test="$tRtl = 'true'">RTL</xsl:when>
  1052. <xsl:when test="$tRtl = 'false'">LTR</xsl:when>
  1053. </xsl:choose>
  1054. </xsl:attribute>
  1055. </xsl:if>
  1056. <xsl:attribute name="contentText">
  1057. <xsl:if test="$rgchProps!=''">
  1058. <xsl:text><C a="</xsl:text>
  1059. <xsl:value-of select="$rgchProps" />
  1060. <xsl:text>"></xsl:text>
  1061. </xsl:if>
  1062. <xsl:value-of select="$sText" />
  1063. <xsl:if test="$rgchProps!=''">
  1064. <xsl:text></C></xsl:text>
  1065. </xsl:if>
  1066. </xsl:attribute>
  1067. </xsl:element>
  1068. </xsl:otherwise>
  1069. </xsl:choose>
  1070. </xsl:template>
  1071. <xsl:template name="Line">
  1072. <xsl:param name="pContext" /><xsl:param name="tRtl" />
  1073. <element layoutChildren="flow" id="#2058" childrenMargin="0" distributeChildren="false" expandToFillVert="false"  sameHeightChildren="false" indentBy="2" padding="0,4,0,0">
  1074. <xsl:if test="$tRtl != ''">
  1075. <xsl:attribute name="direction">
  1076. <xsl:choose>
  1077. <xsl:when test="$tRtl = 'true'">RTL</xsl:when>
  1078. <xsl:when test="$tRtl = 'false'">LTR</xsl:when>
  1079. </xsl:choose>
  1080. </xsl:attribute>
  1081. </xsl:if>
  1082. <xsl:apply-templates select="$pContext" />
  1083. </element>
  1084. </xsl:template>
  1085. <xsl:template name="ActionsData">
  1086. <xsl:param name="data" />
  1087. <xsl:if test="$data != ''">
  1088. <label isAcceleratorIgnored="true" isVisible="false" text="{$data}" id="#2085" layoutPosition="none"  />
  1089. </xsl:if>
  1090. </xsl:template>
  1091. <xsl:template name="Actions">
  1092. <xsl:param name="sName" />
  1093. <xsl:param name="sText" />
  1094. <xsl:param name="sCopy" />
  1095. <xsl:param name="sInsert" />
  1096. <xsl:param name="pCustom" /><xsl:param name="fFlat" />
  1097. <xsl:param name="pLinks" /><xsl:param name="pData1" /><xsl:param name="pData2" /><xsl:param name="sData3" />
  1098. <xsl:param name="sMode" />
  1099. <xsl:param name="sDefault" />
  1100. <xsl:choose>
  1101. <xsl:when test="$sMode='splitdd'">
  1102. <SplitDropdown id="#2038" isPromoting="false" sheet="#SDD" accessibleName="{$sName}" height="23" >
  1103. <xsl:if test="$sDefault = 'none'">
  1104. <SplitDropdownButton id="#4000" >
  1105. <xsl:attribute name="text">
  1106. <xsl:choose>
  1107. <xsl:when test="$sText != ''">
  1108. <xsl:value-of select="$sText" />
  1109. </xsl:when>
  1110. <xsl:otherwise>:rcstring(0x01820018L)</xsl:otherwise>
  1111. </xsl:choose>
  1112. </xsl:attribute>
  1113. </SplitDropdownButton>
  1114. </xsl:if>
  1115. <xsl:choose>
  1116. <xsl:when test="$pData1">
  1117. <xsl:for-each select="$pData1">
  1118. <label isAcceleratorIgnored="true" isVisible="false"  id="#2085" layoutPosition="none" >
  1119. <xsl:attribute name="text">
  1120. <xsl:value-of select="."/>
  1121. </xsl:attribute>
  1122. </label>
  1123. </xsl:for-each>
  1124. </xsl:when>
  1125. <xsl:when test="$sData3 != ''">
  1126. <label isAcceleratorIgnored="true" text="{$sData3}" isVisible="false"  id="#2085" layoutPosition="none" />
  1127. </xsl:when>
  1128. <xsl:otherwise>
  1129. <xsl:for-each select="$pData2">
  1130. <label isAcceleratorIgnored="true" isVisible="false"  id="#2085" layoutPosition="none" >
  1131. <xsl:attribute name="text">
  1132. <xsl:value-of select="."/>
  1133. </xsl:attribute>
  1134. </label>
  1135. </xsl:for-each>
  1136. </xsl:otherwise>
  1137. </xsl:choose>
  1138. <Menu id="#2046" >
  1139. <xsl:if test="$fFlat = 'true'" >
  1140. <xsl:attribute name="eventHandler">RefFactoidEL</xsl:attribute>
  1141. </xsl:if>
  1142. <xsl:if test="$sInsert != ''">
  1143. <xsl:variable name="sInsertState">
  1144. <xsl:if test="$sDefault='insert'">down</xsl:if>
  1145. </xsl:variable>
  1146. <menuItem id="#2041" text="{$sInsert}" tcid="9437" itemState="{$sInsertState}" eventHandler="RefActionEL" />
  1147. </xsl:if>
  1148. <xsl:if test="$sCopy!=''">
  1149. <xsl:variable name="sCopyState">
  1150. <xsl:if test="$sDefault='copy'">down</xsl:if>
  1151. </xsl:variable>
  1152. <menuItem id="#2040" text="{$sCopy}" tcid="19" itemState="{$sCopyState}" eventHandler="RefActionEL" />
  1153. </xsl:if>
  1154. <xsl:if test="$pLinks">
  1155. <xsl:apply-templates select="$pLinks" >
  1156. <xsl:with-param name="fAllowed" >
  1157. <xsl:if test="$sDefault = 'unknown'">true</xsl:if>
  1158. </xsl:with-param>
  1159. <xsl:with-param name="mode" >splitdd</xsl:with-param>
  1160. </xsl:apply-templates>
  1161. </xsl:if>
  1162. <xsl:if test="$pCustom">
  1163. <xsl:apply-templates select="$pCustom" >
  1164. <xsl:with-param name="fFlat" >
  1165. <xsl:value-of select="$fFlat" />
  1166. </xsl:with-param>
  1167. </xsl:apply-templates>
  1168. </xsl:if>
  1169. </Menu>
  1170. </SplitDropdown>
  1171. </xsl:when>
  1172. <xsl:when test="$sMode='menubutton'">
  1173. <xsl:choose>
  1174. <xsl:when test="$pData1">
  1175. <xsl:for-each select="$pData1">
  1176. <label isAcceleratorIgnored="true" isVisible="false"  id="#2085" layoutPosition="none" >
  1177. <xsl:attribute name="text">
  1178. <xsl:value-of select="."/>
  1179. </xsl:attribute>
  1180. </label>
  1181. </xsl:for-each>
  1182. </xsl:when>
  1183. <xsl:when test="$sData3 != ''">
  1184. <label isAcceleratorIgnored="true" text="{$sData3}" isVisible="false"  id="#2085" layoutPosition="none" />
  1185. </xsl:when>
  1186. <xsl:otherwise>
  1187. <xsl:for-each select="$pData2">
  1188. <label isAcceleratorIgnored="true" isVisible="false"  id="#2085" layoutPosition="none" >
  1189. <xsl:attribute name="text">
  1190. <xsl:value-of select="."/>
  1191. </xsl:attribute>
  1192. </label>
  1193. </xsl:for-each>
  1194. </xsl:otherwise>
  1195. </xsl:choose>
  1196. <xsl:variable name="rand" select="math:random()" />
  1197. <Menu id="{generate-id(.)}{$rand}"  eventHandler="RefFactoidEL" >
  1198. <xsl:if test="$sInsert != ''">
  1199. <xsl:variable name="sInsertState">
  1200. <xsl:if test="$sDefault='insert'">down</xsl:if>
  1201. </xsl:variable>
  1202. <menuItem id="#2041" text="{$sInsert}" tcid="9437" itemState="{$sInsertState}" eventHandler="RefActionEL" />
  1203. </xsl:if>
  1204. <xsl:if test="$sCopy!=''">
  1205. <xsl:variable name="sCopyState">
  1206. <xsl:if test="$sDefault='copy'">down</xsl:if>
  1207. </xsl:variable>
  1208. <menuItem id="#2040" text="{$sCopy}" tcid="19" itemState="{$sCopyState}" eventHandler="RefActionEL" />
  1209. </xsl:if>
  1210. <xsl:if test="$pLinks">
  1211. <xsl:apply-templates select="$pLinks" >
  1212. <xsl:with-param name="fAllowed" >
  1213. <xsl:if test="$sDefault = 'unknown'">true</xsl:if>
  1214. </xsl:with-param>
  1215. <xsl:with-param name="mode" >splitdd</xsl:with-param>
  1216. </xsl:apply-templates>
  1217. </xsl:if>
  1218. <xsl:if test="$pCustom">
  1219. <xsl:apply-templates select="$pCustom[1]" >
  1220. <xsl:with-param name="fFlat" >true</xsl:with-param>
  1221. </xsl:apply-templates>
  1222. </xsl:if>
  1223. </Menu>
  1224. <Button isAcceleratorIgnored="true" id="#2099" accessibleName="{$sName}" isMenuButton="true" menuSrcID="{generate-id(.)}{$rand}" height="23" eventHandler="RefMenuButtonEL;MsoContextMenuHandler" >
  1225. <xsl:attribute name="text">
  1226. <xsl:choose>
  1227. <xsl:when test="$sText != ''">
  1228. <xsl:value-of select="$sText" />
  1229. </xsl:when>
  1230. <xsl:otherwise>:rcstring(0x01820018L)</xsl:otherwise>
  1231. </xsl:choose>
  1232. </xsl:attribute>
  1233. </Button>
  1234. </xsl:when>
  1235. <xsl:when test="$sMode='dropmenu'">
  1236. <xsl:choose>
  1237. <xsl:when test="$pData1">
  1238. <xsl:for-each select="$pData1">
  1239. <label isAcceleratorIgnored="true" isVisible="false"  id="#2085" layoutPosition="none" >
  1240. <xsl:attribute name="text">
  1241. <xsl:value-of select="."/>
  1242. </xsl:attribute>
  1243. </label>
  1244. </xsl:for-each>
  1245. </xsl:when>
  1246. <xsl:when test="$sData3 != ''">
  1247. <label isAcceleratorIgnored="true" text="{$sData3}" isVisible="false"  id="#2085" layoutPosition="none" />
  1248. </xsl:when>
  1249. <xsl:otherwise>
  1250. <xsl:for-each select="$pData2">
  1251. <label isAcceleratorIgnored="true" isVisible="false"  id="#2085" layoutPosition="none" >
  1252. <xsl:attribute name="text">
  1253. <xsl:value-of select="."/>
  1254. </xsl:attribute>
  1255. </label>
  1256. </xsl:for-each>
  1257. </xsl:otherwise>
  1258. </xsl:choose>
  1259. <DropButton id="#2046" isPromoting="false" accessibleName="{$sName}" eventHandler="RefContextMenuHandlerEL">
  1260. <xsl:if test="$sInsert != ''">
  1261. <xsl:choose>
  1262. <xsl:when test="$sDefault='insert'">
  1263. <menuItem id="#2088" text="{$sInsert}" tcid="9437" eventHandler="RefActionEL" />
  1264. </xsl:when>
  1265. <xsl:otherwise>
  1266. <menuItem id="#2041" text="{$sInsert}" tcid="9437" eventHandler="RefActionEL" />
  1267. </xsl:otherwise>
  1268. </xsl:choose>
  1269. </xsl:if>
  1270. <xsl:if test="$sCopy != ''">
  1271. <xsl:choose>
  1272. <xsl:when test="$sDefault = 'copy'">
  1273. <menuItem id="#2087" text="{$sCopy}" tcid="19" eventHandler="RefActionEL" />
  1274. </xsl:when>
  1275. <xsl:otherwise>
  1276. <menuItem id="#2040" text="{$sCopy}" tcid="19" eventHandler="RefActionEL" />
  1277. </xsl:otherwise>
  1278. </xsl:choose>
  1279. </xsl:if>
  1280. <xsl:if test="$pLinks">
  1281. <xsl:apply-templates select="$pLinks" >
  1282. <xsl:with-param name="fAllowed" >
  1283. <xsl:if test="$sDefault='unknown'">true</xsl:if>
  1284. </xsl:with-param>
  1285. <xsl:with-param name="mode" >dropmenu</xsl:with-param>
  1286. </xsl:apply-templates>
  1287. </xsl:if>
  1288. </DropButton>
  1289. </xsl:when>
  1290. </xsl:choose>
  1291. </xsl:template>
  1292. <xsl:template name="ActionMenu">
  1293. <xsl:param name="insert" />
  1294. <xsl:param name="copy" />
  1295. <xsl:param name="data1" />
  1296. <xsl:param name="data2" />
  1297. <xsl:param name="query" />
  1298. <xsl:param name="querytext" />
  1299. <xsl:param name="hyperlink" />
  1300. <xsl:param name="hyperlinkurl" />
  1301. <xsl:param name="context" />
  1302. <xsl:param name="default" />
  1303. <xsl:param name="menu" />
  1304. </xsl:template>
  1305. <xsl:template name="ActionNewQuery">
  1306. <xsl:param name="sText" />
  1307. <xsl:param name="sCategory" />
  1308. <xsl:param name="sQuery" />
  1309. <xsl:param name="fDefault" />
  1310. <xsl:param name="fNoIcon" />
  1311. <xsl:param name="mode" />
  1312. <xsl:param name="sAction" />
  1313. <xsl:choose>
  1314. <xsl:when test="$fNoIcon='false' and $fDefault='false'">
  1315. <menuItem id="#2042" text="{$sText}"   tcid="7685" eventHandler="RefGoEL" >
  1316. <label id="#2098" isAcceleratorIgnored="true" text="{$sQuery}" isVisible="false" layoutPosition="none"  />
  1317. <xsl:if test="$sCategory != ''">
  1318. <label id="#2045" isAcceleratorIgnored="true" text="{$sCategory}" isVisible="false" layoutPosition="none"  />
  1319. </xsl:if>
  1320. </menuItem>
  1321. </xsl:when>
  1322. <xsl:when test="$fNoIcon='true' and $fDefault='false'">
  1323. <menuItem id="#2042" text="{$sText}"  eventHandler="RefGoEL" >
  1324. <label id="#2098" isAcceleratorIgnored="true" text="{$sQuery}" isVisible="false" layoutPosition="none"  />
  1325. <xsl:if test="$sCategory != ''">
  1326. <label id="#2045" isAcceleratorIgnored="true" text="{$sCategory}" isVisible="false" layoutPosition="none"  />
  1327. </xsl:if>
  1328. </menuItem>
  1329. </xsl:when>
  1330. <xsl:when test="$fNoIcon='false' and $fDefault='true' and $mode='dropmenu'">
  1331. <menuItem id="#2089" text="{$sText}"   tcid="7685" eventHandler="RefGoEL" >
  1332. <label id="#2098" isAcceleratorIgnored="true" text="{$sQuery}" isVisible="false" layoutPosition="none"  />
  1333. <xsl:if test="$sCategory != ''">
  1334. <label id="#2045" isAcceleratorIgnored="true" text="{$sCategory}" isVisible="false" layoutPosition="none"  />
  1335. </xsl:if>
  1336. </menuItem>
  1337. </xsl:when>
  1338. <xsl:when test="$fNoIcon='true' and $fDefault='true' and $mode='dropmenu'">
  1339. <menuItem id="#2089" text="{$sText}"  eventHandler="RefGoEL" >
  1340. <label id="#2098" isAcceleratorIgnored="true" text="{$sQuery}" isVisible="false" layoutPosition="none"  />
  1341. <xsl:if test="$sCategory != ''">
  1342. <label id="#2045" isAcceleratorIgnored="true" text="{$sCategory}" isVisible="false" layoutPosition="none"  />
  1343. </xsl:if>
  1344. </menuItem>
  1345. </xsl:when>
  1346. <xsl:when test="$fNoIcon='false' and $fDefault='true' and $mode='splitdd'">
  1347. <menuItem id="#2042" text="{$sText}"   tcid="7685" eventHandler="RefGoEL" itemState="down" >
  1348. <label id="#2098" isAcceleratorIgnored="true" text="{$sQuery}" isVisible="false" layoutPosition="none"  />
  1349. <xsl:if test="$sCategory != ''">
  1350. <label id="#2045" isAcceleratorIgnored="true" text="{$sCategory}" isVisible="false" layoutPosition="none"  />
  1351. </xsl:if>
  1352. </menuItem>
  1353. </xsl:when>
  1354. <xsl:when test="$fNoIcon='true' and $fDefault='true' and $mode='splitdd'">
  1355. <menuItem id="#2042" text="{$sText}"  eventHandler="RefGoEL" itemState="down" >
  1356. <label id="#2098" isAcceleratorIgnored="true" text="{$sQuery}" isVisible="false" layoutPosition="none" />
  1357. <xsl:if test="$sCategory != ''">
  1358. <label id="#2045" isAcceleratorIgnored="true" text="{$sCategory}" isVisible="false" layoutPosition="none"  />
  1359. </xsl:if>
  1360. </menuItem>
  1361. </xsl:when>
  1362. </xsl:choose>
  1363. </xsl:template>
  1364. <xsl:template name="ActionHyperlink">
  1365. <xsl:param name="sText" />
  1366. <xsl:param name="sUrl" />
  1367. <xsl:param name="fDefault" />
  1368. <xsl:param name="fNoIcon" />
  1369. <xsl:param name="fPay" />
  1370. <xsl:param name="mode" />
  1371. <xsl:choose>
  1372. <xsl:when test="$fNoIcon = 'false' and $fDefault = 'false' and $fPay = 'false'">
  1373. <menuItem id="#2043" text="{$sText}" tcid="1576" eventHandler="RefNavEL" textAlign="EndEllipsis">
  1374. <label id="#2050" isAcceleratorIgnored="true" text="{$sUrl}" isVisible="false" layoutPosition="none" />
  1375. </menuItem>
  1376. </xsl:when>
  1377. <xsl:when test="$fNoIcon = 'false' and $fDefault = 'false' and $fPay = 'true'">
  1378. <menuItem id="#2043" text="{$sText}" tcid="9761" eventHandler="RefNavEL" textAlign="EndEllipsis">
  1379. <label id="#2050" isAcceleratorIgnored="true" text="{$sUrl}" isVisible="false" layoutPosition="none" />
  1380. </menuItem>
  1381. </xsl:when>
  1382. <xsl:when test="$fNoIcon = 'true' and $fDefault = 'false'">
  1383. <menuItem id="#2043" text="{$sText}" eventHandler="RefNavEL" textAlign="EndEllipsis">
  1384. <label id="#2050" isAcceleratorIgnored="true" text="{$sUrl}" isVisible="false" layoutPosition="none" />
  1385. </menuItem>
  1386. </xsl:when>
  1387. <xsl:when test="$fNoIcon = 'false' and $fDefault = 'true' and $mode='dropmenu' and $fPay = 'false'">
  1388. <menuItem id="#2090" text="{$sText}" tcid="1576" eventHandler="RefNavEL" textAlign="EndEllipsis">
  1389. <label id="#2050" isAcceleratorIgnored="true" text="{$sUrl}" isVisible="false" layoutPosition="none" />
  1390. </menuItem>
  1391. </xsl:when>
  1392. <xsl:when test="$fNoIcon = 'false' and $fDefault = 'true' and $mode='dropmenu' and $fPay = 'true'">
  1393. <menuItem id="#2090" text="{$sText}" tcid="9761" eventHandler="RefNavEL" textAlign="EndEllipsis">
  1394. <label id="#2050" isAcceleratorIgnored="true" text="{$sUrl}" isVisible="false" layoutPosition="none" />
  1395. </menuItem>
  1396. </xsl:when>
  1397. <xsl:when test="$fNoIcon = 'true' and $fDefault = 'true' and $mode='dropmenu'">
  1398. <menuItem id="#2090" text="{$sText}" eventHandler="RefNavEL" textAlign="EndEllipsis">
  1399. <label id="#2050" isAcceleratorIgnored="true" text="{$sUrl}" isVisible="false" layoutPosition="none" />
  1400. </menuItem>
  1401. </xsl:when>
  1402. <xsl:when test="$fNoIcon = 'false' and $fDefault = 'true' and $mode='splitdd' and $fPay = 'false'">
  1403. <menuItem id="#2090" text="{$sText}" tcid="1576" eventHandler="RefNavEL" textAlign="EndEllipsis" itemState="down">
  1404. <label id="#2050" isAcceleratorIgnored="true" text="{$sUrl}" isVisible="false" layoutPosition="none" />
  1405. </menuItem>
  1406. </xsl:when>
  1407. <xsl:when test="$fNoIcon = 'false' and $fDefault = 'true' and $mode='splitdd' and $fPay = 'true'">
  1408. <menuItem id="#2090" text="{$sText}" tcid="9761" eventHandler="RefNavEL" textAlign="EndEllipsis" itemState="down">
  1409. <label id="#2050" isAcceleratorIgnored="true" text="{$sUrl}" isVisible="false" layoutPosition="none" />
  1410. </menuItem>
  1411. </xsl:when>
  1412. <xsl:when test="$fNoIcon = 'true' and $fDefault = 'true' and $mode='splitdd'">
  1413. <menuItem id="#2090" text="{$sText}" eventHandler="RefNavEL" textAlign="EndEllipsis" itemState="down">
  1414. <label id="#2050" isAcceleratorIgnored="true" text="{$sUrl}" isVisible="false" layoutPosition="none" />
  1415. </menuItem>
  1416. </xsl:when>
  1417. </xsl:choose>
  1418. </xsl:template>
  1419. <xsl:template name="Factoid">
  1420. <xsl:param name="sXml" />
  1421. <xsl:param name="sName" />
  1422. <xsl:param name="sXMLNS" />
  1423. <xsl:param name="sTag" />
  1424. <xsl:param name="sUrl" />
  1425. <xsl:param name="sPropBag" />
  1426. <xsl:param name="fFlat" />
  1427. <xsl:param name="sDisplayname" />
  1428. <xsl:choose>
  1429. <xsl:when test="$fFlat = 'true'">
  1430. <menuDivider id="#2039">
  1431. <label isAcceleratorIgnored="true" isVisible="false" id="#2031"  text="{$sXMLNS}"    layoutPosition="none" />
  1432. <label isAcceleratorIgnored="true" isVisible="false" id="#2032"     text="{$sXml}"      layoutPosition="none" />
  1433. <label isAcceleratorIgnored="true" isVisible="false" id="#2034"     text="{$sTag}"      layoutPosition="none" />
  1434. <label isAcceleratorIgnored="true" isVisible="false" id="#2033"    text="{$sName}"     layoutPosition="none" />
  1435. <label isAcceleratorIgnored="true" isVisible="false" id="#2035"    text="{$fFlat}"     layoutPosition="none" />
  1436. <label isAcceleratorIgnored="true" isVisible="false" id="#2036" text="{$sPropBag}"  layoutPosition="none" />
  1437. </menuDivider>
  1438. <xsl:if test="$sUrl != ''">
  1439. <menuItem id="#2037" eventHandler="RefNavEL" textAlign="EndEllipsis" >
  1440. <xsl:attribute name="text">:rcstring(0x0182000DL)</xsl:attribute>
  1441. <label isAcceleratorIgnored="true" id="#2050" text="{$sUrl}" isVisible="false" layoutPosition="none" />
  1442. </menuItem>
  1443. </xsl:if>
  1444. </xsl:when>
  1445. <xsl:otherwise>
  1446. <menuDivider id="0" />
  1447. <menuItem id="#2039" text="{$sDisplayname}" eventHandler="RefFactoidEL">
  1448. <label isAcceleratorIgnored="true" isVisible="false" id="#2031"  text="{$sXMLNS}"   layoutPosition="none" />
  1449. <label isAcceleratorIgnored="true" isVisible="false" id="#2032"     text="{$sXml}"     layoutPosition="none" />
  1450. <label isAcceleratorIgnored="true" isVisible="false" id="#2034"     text="{$sTag}"     layoutPosition="none" />
  1451. <label isAcceleratorIgnored="true" isVisible="false" id="#2033"    text="{$sName}"    layoutPosition="none" />
  1452. <label isAcceleratorIgnored="true" isVisible="false" id="#2035"    text="'false'"     layoutPosition="none" />
  1453. <label isAcceleratorIgnored="true" isVisible="false" id="#2036" text="{$sPropBag}" layoutPosition="none" />
  1454. <xsl:if test="$sUrl != ''">
  1455. <menuDivider />
  1456. <menuItem id="#2037" eventHandler="RefNavEL" textAlign="EndEllipsis" >
  1457. <xsl:attribute name="text">:rcstring(0x0182000DL)</xsl:attribute>
  1458. <label isAcceleratorIgnored="true" id="#2050" text="{$sUrl}" isVisible="false" layoutPosition="none" />
  1459. </menuItem>
  1460. </xsl:if>
  1461. </menuItem>
  1462. </xsl:otherwise>
  1463. </xsl:choose>
  1464. </xsl:template>
  1465. <xsl:template name="Heading">
  1466. <xsl:param name="pContext" /><xsl:param name="sText" />
  1467. <xsl:param name="tRtl" />
  1468. <xsl:param name="iLevel" />
  1469. <xsl:param name="cLevelSkipped" />
  1470. <xsl:param name="pAction" /><xsl:param name="sContent" />
  1471. <xsl:param name="spCallback" /><xsl:param name="pOriginator"/><xsl:param name="tCollapsed" />
  1472. <xsl:param name="tCollapsible" />
  1473. <xsl:param name="fAlways" />
  1474. <xsl:param name="idService" />
  1475. <xsl:param name="sStatus" />
  1476. <xsl:param name="iStart" />
  1477. <xsl:param name="cSize" />
  1478. <xsl:param name="cMax" />
  1479. <xsl:variable name="sLayoutPosition">
  1480. <xsl:choose>
  1481. <xsl:when test="$tCollapsed='true'">none</xsl:when>
  1482. <xsl:otherwise>auto</xsl:otherwise>
  1483. </xsl:choose>
  1484. </xsl:variable>
  1485. <xsl:variable name="idControl">
  1486. <xsl:choose>
  1487. <xsl:when test="$iLevel = 1">#2103</xsl:when>
  1488. <xsl:when test="$tCollapsible='false'">#2101</xsl:when>
  1489. <xsl:when test="$tCollapsed='false'">#2101</xsl:when>
  1490. <xsl:when test="$tCollapsed='true'">#2101</xsl:when>
  1491. <xsl:otherwise>#2100</xsl:otherwise>
  1492. </xsl:choose>
  1493. </xsl:variable>
  1494. <xsl:variable name="iIndent">
  1495. <xsl:choose>
  1496. <xsl:when test="$cLevelSkipped = 0">0</xsl:when>
  1497. <xsl:when test="$iLevel = 5">
  1498. <xsl:value-of select="$cLevelSkipped * 8 - 14" />
  1499. </xsl:when>
  1500. <xsl:otherwise>
  1501. <xsl:value-of select="$cLevelSkipped * 8 - 6" />
  1502. </xsl:otherwise>
  1503. </xsl:choose>
  1504. </xsl:variable>
  1505. <groupBox sheet="#H{$iLevel}" id="{$idControl}" expandToFillHoriz="true">
  1506. <xsl:if test="$cLevelSkipped > 0">
  1507. <xsl:attribute name="indentBy">
  1508. <xsl:value-of select="$iIndent" />
  1509. </xsl:attribute>
  1510. </xsl:if>
  1511. <xsl:if test="$tCollapsed='true'">
  1512. <xsl:attribute name="isCollapsed">true</xsl:attribute>
  1513. </xsl:if>
  1514. <xsl:choose>
  1515. <xsl:when test="$tCollapsible='false'">
  1516. <xsl:attribute name="isCollapsible">false</xsl:attribute>
  1517. </xsl:when>
  1518. <xsl:otherwise>
  1519. <xsl:attribute name="isCollapsible">true</xsl:attribute>
  1520. </xsl:otherwise>
  1521. </xsl:choose>
  1522. <xsl:if test="$iLevel = 1">
  1523. <xsl:attribute name="eventHandler">RefNameEL</xsl:attribute>
  1524. </xsl:if>
  1525. <groupHeader isAcceleratorIgnored="true" text="{$sText}" id="#2091" textAlign="WrapLeft" expandToFillVert="false" expandToFillHoriz="true">
  1526. <xsl:if test="$tRtl != ''">
  1527. <xsl:attribute name="direction">
  1528. <xsl:choose>
  1529. <xsl:when test="$tRtl = 'true'">RTL</xsl:when>
  1530. <xsl:when test="$tRtl = 'false'">LTR</xsl:when>
  1531. </xsl:choose>
  1532. </xsl:attribute>
  1533. </xsl:if>
  1534. <xsl:if test="$iLevel = 1">
  1535. <label isAcceleratorIgnored="true" id="#2067"     text="{$idService}" isVisible="false" layoutPosition="none" />
  1536. <label isAcceleratorIgnored="true" id="#2068" text="{$sStatus}"   isVisible="false" layoutPosition="none"  />
  1537. <label isAcceleratorIgnored="true" id="#2069"        text="{$iStart}"    isVisible="false" layoutPosition="none"  />
  1538. <label isAcceleratorIgnored="true" id="#2070"         text="{$cSize}"     isVisible="false" layoutPosition="none"  />
  1539. <label isAcceleratorIgnored="true" id="#2071"          text="{$cMax}"      isVisible="false" layoutPosition="none"  />
  1540. <xsl:variable name="sServiceContext">
  1541. <xsl:if test="$pOriginator" >
  1542. <xsl:apply-templates select="$pOriginator" mode="response">
  1543. <xsl:with-param name="mode" select="'encode'" />
  1544. <xsl:with-param name="uri" select="namespace-uri()"/>
  1545. </xsl:apply-templates>
  1546. </xsl:if>
  1547. </xsl:variable>
  1548. <xsl:if test="$sServiceContext != ''">
  1549. <label isAcceleratorIgnored="true" id="#2073" isVisible="false" layoutPosition="none" text="{$sServiceContext}" />
  1550. </xsl:if>
  1551. <xsl:if test="$fAlways = 'true'">
  1552. <label isAcceleratorIgnored="true" id="#2092" text="true" isVisible="false" layoutPosition="none"  />
  1553. </xsl:if>
  1554. </xsl:if>
  1555. </groupHeader>
  1556. <groupContent id="#2052" expandToFillHoriz="true" layoutPosition="{$sLayoutPosition}">
  1557. <xsl:attribute name="padding">
  1558. <xsl:choose>
  1559. <xsl:when test="$iLevel = 1">9,1,7,0</xsl:when>
  1560. <xsl:otherwise>9,1,0,0</xsl:otherwise>
  1561. </xsl:choose>
  1562. </xsl:attribute>
  1563. <xsl:choose>
  1564. <xsl:when test="$sContent and $sContent!=''">
  1565. <label textAlign="wrapLeft" text="{$sContent}" expandToFillHoriz="true" id="#2119" />
  1566. </xsl:when>
  1567. <xsl:when test="$spCallback != ''">
  1568. <xsl:call-template name="ContentCallback">
  1569. <xsl:with-param name="pContext" select="$pContext" />
  1570. <xsl:with-param name="spCallback" select="$spCallback" />
  1571. <xsl:with-param name="idService" select="$idService" />
  1572. <xsl:with-param name="iStart" select="$iStart" />
  1573. <xsl:with-param name="cSize" select="$cSize" />
  1574. <xsl:with-param name="cMax" select="$cMax" />
  1575. </xsl:call-template>
  1576. </xsl:when>
  1577. <xsl:otherwise>
  1578. <xsl:apply-templates select="$pContext">
  1579. <xsl:with-param name="iLevel" select="$iLevel" />
  1580. </xsl:apply-templates>
  1581. </xsl:otherwise>
  1582. </xsl:choose>
  1583. <xsl:if test="$pAction">
  1584. <element layoutChildren="flow" id="#2120" >
  1585. <xsl:apply-templates select="$pAction" />
  1586. </element>
  1587. </xsl:if>
  1588. </groupContent>
  1589. </groupBox>
  1590. </xsl:template>
  1591. <xsl:template name="Result">
  1592. <xsl:param name="pContext" /><xsl:param name="sRevision" />
  1593. <xsl:param name="sBuild" />
  1594. <xsl:param name="tRtl" />
  1595. <xsl:choose>
  1596. <xsl:when test="$tRtl != ''">
  1597. <xsl:variable name="sDirection">
  1598. <xsl:choose>
  1599. <xsl:when test="$tRtl='true'">RTL</xsl:when>
  1600. <xsl:when test="$tRtl='false'">LTR</xsl:when>
  1601. </xsl:choose>
  1602. </xsl:variable>
  1603. <element direction="{$sDirection}" layoutChildren="vertical" expandToFillHoriz="true" id="#2116">
  1604. <xsl:apply-templates select="$pContext">
  1605. <xsl:with-param name="iLevel" select="'1'" />
  1606. </xsl:apply-templates>
  1607. </element>
  1608. </xsl:when>
  1609. <xsl:otherwise>
  1610. <xsl:apply-templates select="$pContext">
  1611. <xsl:with-param name="iLevel" select="'1'" />
  1612. </xsl:apply-templates>
  1613. </xsl:otherwise>
  1614. </xsl:choose>
  1615. </xsl:template>
  1616. <xsl:template name="Document">
  1617. <xsl:param name="sTitle" />
  1618. <xsl:param name="sDescription" />
  1619. <xsl:param name="sUrlDisplay" />
  1620. <xsl:param name="sUrlDestination" />
  1621. <xsl:param name="sUrlLink" />
  1622. <xsl:param name="sUrlExtension" />
  1623. <xsl:param name="pRequery" />
  1624. <xsl:param name="sImage" />
  1625. <xsl:param name="sImageAltText" />
  1626. <xsl:param name="fForPay" />
  1627. <xsl:param name="tRtl" />
  1628. <xsl:variable name="sNewTitle">
  1629. <xsl:choose>
  1630. <xsl:when test="$sTitle != ''">
  1631. <xsl:value-of select="$sTitle" />
  1632. </xsl:when>
  1633. <xsl:otherwise>:rcstring(0x01820019L)</xsl:otherwise>
  1634. </xsl:choose>
  1635. </xsl:variable>
  1636. <groupBox sheet="#H2" id="#2100" expandToFillHoriz="true" isCollapsible="true">
  1637. <groupHeader isAcceleratorIgnored="true" text="{$sNewTitle}" id="#2122" textAlign="WrapLeft" expandToFillVert="false" expandToFillHoriz="true"/>
  1638. <groupContent layoutChildren="vertical" id="#2052" expandToFillHoriz="true" padding="11,0,0,0">
  1639. <xsl:if test="$sDescription != ''">
  1640. <xsl:call-template name="Text" >
  1641. <xsl:with-param name="fWrapping" select="'true'" />
  1642. <xsl:with-param name="sText" select="$sDescription" />
  1643. <xsl:with-param name="sType" select="'description'" />
  1644. <xsl:with-param name="fPadding" select="'none'" />
  1645. <xsl:with-param name="tRtl" select="$tRtl" />
  1646. </xsl:call-template>
  1647. </xsl:if>
  1648. <xsl:if test="$sUrlLink != ''">
  1649. <element layoutChildren="horizontal" childrenMargin="1" id="#2117" >
  1650. <xsl:if test="$sUrlExtension != ''">
  1651. <ImageExt fileName=".{$sUrlExtension}" />
  1652. </xsl:if>
  1653. <xsl:call-template name="HyperLink">
  1654. <xsl:with-param name="sText" select="$sUrlDisplay" />
  1655. <xsl:with-param name="sTooltip" select="$sUrlDestination" />
  1656. <xsl:with-param name="sAction" select="'fetch'" />
  1657. <xsl:with-param name="sQuery" select="$sUrlLink" />
  1658. <xsl:with-param name="fPay" select="$fForPay" />
  1659. </xsl:call-template>
  1660. </element>
  1661. </xsl:if>
  1662. <xsl:if test="$sImage != ''">
  1663. <imageURL URL="{$sImage}" screentip="{$sImageAltText}" accessibleName="{$sImageAltText}" id="#2123"/>
  1664. </xsl:if>
  1665. </groupContent>
  1666. </groupBox>
  1667. </xsl:template>
  1668. <xsl:template name="Status">
  1669. <xsl:param name="sStatus" />
  1670. <xsl:param name="tRtl" />
  1671. <xsl:param name="idService" />
  1672. <xsl:if test="$sStatus='ERROR_NO_RESPONSE'">
  1673. <element layoutChildren="vertical" expandToFillHoriz="true" id="RR_{$idService}">
  1674. <label id="#2059" text="{$sStatus}" textAlign="WrapLeft">
  1675. <xsl:if test="$tRtl != ''">
  1676. <xsl:attribute name="direction">
  1677. <xsl:choose>
  1678. <xsl:when test="$tRtl = 'true'">RTL</xsl:when>
  1679. <xsl:when test="$tRtl = 'false'">LTR</xsl:when>
  1680. </xsl:choose>
  1681. </xsl:attribute>
  1682. </xsl:if>
  1683. </label>
  1684. <hyperlink isAcceleratorIgnored="true" text="Search again" ID="#2060" eventHandler="RefRequeryEL" />
  1685. </element>
  1686. </xsl:if>
  1687. </xsl:template>
  1688. <xsl:template name="ServiceResult">
  1689. <xsl:param name="pContext" />
  1690. <xsl:param name="spCallback" />
  1691. <xsl:param name="idService" />
  1692. <xsl:param name="sStatus" />
  1693. <xsl:param name="iStart"/>
  1694. <xsl:param name="cSize"/>
  1695. <xsl:param name="cMax" />
  1696. <xsl:param name="pOriginator" />
  1697. <xsl:param name="fAlwaysSearched" />
  1698. <xsl:choose>
  1699. <xsl:when test="$sStatus='ERROR_NO_RESULTS_FOUND' or $sStatus='ERROR' or $sStatus='ERROR_SERVER' or $sStatus='ERROR_BAD_RESULTS' or $sStatus='ERROR_NO_RESPONSE' or $sStatus='ERROR_SERVER_TRANSIENT' or $sStatus='ERROR_OUT_OF_ORDER'  or $sStatus='ERROR_BAD_QUERY'">
  1700. <element id="#2080" isVisible="false" expandToFillHoriz="true" layoutPosition="none" >
  1701. <xsl:call-template name="Heading">
  1702. <xsl:with-param name="sText" select="'Invalid service ID'" />
  1703. <xsl:with-param name="iLevel" select="'1'" />
  1704. <xsl:with-param name="pContext" select="$pContext" />
  1705. <xsl:with-param name="spCallback" select="$spCallback" />
  1706. <xsl:with-param name="tCollapsible" select="'true'" />
  1707. <xsl:with-param name="idService" select="$idService" />
  1708. <xsl:with-param name="pOriginator" select="$pOriginator" />
  1709. <xsl:with-param name="tCollapsed" select="'auto'" />
  1710. <xsl:with-param name="sStatus" >
  1711. <xsl:call-template name="StatusTitle">
  1712. <xsl:with-param name="sStatus" select="$sStatus"/>
  1713. </xsl:call-template>
  1714. </xsl:with-param>
  1715. <xsl:with-param name="sContent">
  1716. <xsl:call-template name="SStatusContent">
  1717. <xsl:with-param name="sStatus" select="$sStatus"/>
  1718. </xsl:call-template>
  1719. </xsl:with-param>
  1720. </xsl:call-template>
  1721. </element>
  1722. </xsl:when>
  1723. <xsl:otherwise>
  1724. <xsl:call-template name="Heading">
  1725. <xsl:with-param name="sText" select="'Invalid service ID'" />
  1726. <xsl:with-param name="iLevel" select="'1'" />
  1727. <xsl:with-param name="pContext" select="$pContext" />
  1728. <xsl:with-param name="spCallback" select="$spCallback" />
  1729. <xsl:with-param name="tCollapsible" select="'true'" />
  1730. <xsl:with-param name="idService" select="$idService" />
  1731. <xsl:with-param name="pOriginator" select="$pOriginator" />
  1732. <xsl:with-param name="tCollapsed">
  1733. <xsl:if test="$fAlwaysSearched='true'">false</xsl:if>
  1734. </xsl:with-param>
  1735. <xsl:with-param name="fAlways" select="$fAlwaysSearched" />
  1736. <xsl:with-param name="iStart" select="$iStart" />
  1737. <xsl:with-param name="cSize" select="$cSize" />
  1738. <xsl:with-param name="cMax" select="$cMax" />
  1739. <xsl:with-param name="sStatus" >
  1740. <xsl:call-template name="StatusTitle">
  1741. <xsl:with-param name="sStatus" select="$sStatus" />
  1742. </xsl:call-template>
  1743. </xsl:with-param>
  1744. <xsl:with-param name="sContent">
  1745. <xsl:call-template name="SStatusContent">
  1746. <xsl:with-param name="sStatus" select="$sStatus"/>
  1747. </xsl:call-template>
  1748. </xsl:with-param>
  1749. </xsl:call-template>
  1750. </xsl:otherwise>
  1751. </xsl:choose>
  1752. </xsl:template>
  1753. <xsl:template name="SStatusContent">
  1754. <xsl:param name="sStatus"/>
  1755. <xsl:choose>
  1756. <xsl:when test="$sStatus='SUCCESS'"/>
  1757. <xsl:when test="$sStatus='ERROR_NO_RESPONSE'">:rcstring(0x01820029L)</xsl:when>
  1758. <xsl:when test="$sStatus='ERROR'">:rcstring(0x0182002BL)</xsl:when>
  1759. <xsl:when test="$sStatus='ERROR_NO_RESULTS_FOUND'">:rcstring(0x0182002BL)</xsl:when>
  1760. <xsl:when test="$sStatus='ERROR_SERVER'">:rcstring(0x0182002BL)</xsl:when>
  1761. <xsl:when test="$sStatus='ERROR_BAD_PARAMETERS'">:rcstring(0x0182002CL)</xsl:when>
  1762. <xsl:when test="$sStatus='ERROR_OUT_OF_ORDER'">:rcstring(0x0182002DL)</xsl:when>
  1763. <xsl:when test="$sStatus='ERROR_SERVER_TRANSIENT'">:rcstring(0x0182002DL)</xsl:when>
  1764. <xsl:when test="$sStatus='ERROR_NO_CONNECTION'">:rcstring(0x0182002EL)</xsl:when>
  1765. <xsl:when test="$sStatus='ERROR_NO_AUTHENTICATION'">:rcstring(0x0182002FL)</xsl:when>
  1766. <xsl:when test="$sStatus='ERROR_NO_AUTHORIZATION'">:rcstring(0x01820030L)</xsl:when>
  1767. <xsl:otherwise>:rcstring(0x0182002AL)</xsl:otherwise>
  1768. </xsl:choose>
  1769. </xsl:template>
  1770. <xsl:template name="Range">
  1771. <xsl:param name="pContext" /><xsl:param name="idService" />
  1772. <xsl:param name="iStart"/>
  1773. <xsl:param name="cSize"/>
  1774. <xsl:param name="cMax" />
  1775. <xsl:param name="pOriginator" />
  1776. <xsl:param name="sStatus" />
  1777. <xsl:param name="fAlwaysSearched" />
  1778. <xsl:choose>
  1779. <xsl:when test="$pContext">
  1780. <xsl:apply-templates select="$pContext"><xsl:with-param name="idService" select="$idService" />
  1781. <xsl:with-param name="sStatus" select="$sStatus" />
  1782. <xsl:with-param name="pOriginator" select="$pOriginator" />
  1783. <xsl:with-param name="fAlwaysSearched" select="$fAlwaysSearched" />
  1784. <xsl:with-param name="iStart" select="$iStart" />
  1785. <xsl:with-param name="cSize" select="$cSize" />
  1786. <xsl:with-param name="cMax" select="$cMax" />
  1787. </xsl:apply-templates>
  1788. </xsl:when>
  1789. <xsl:otherwise>
  1790. <xsl:call-template name="ServiceResult">
  1791. <xsl:with-param name="idService" select="$idService" />
  1792. <xsl:with-param name="spCallback" select="'ResponseResults'" />
  1793. <xsl:with-param name="sStatus" select="$sStatus" />
  1794. <xsl:with-param name="pOriginator" select="$pOriginator" />
  1795. <xsl:with-param name="iStart" select="$iStart" />
  1796. <xsl:with-param name="cSize" select="$cSize" />
  1797. <xsl:with-param name="cMax" select="$cMax" />
  1798. <xsl:with-param name="fAlwaysSearched" select="$fAlwaysSearched" />
  1799. </xsl:call-template>
  1800. </xsl:otherwise>
  1801. </xsl:choose>
  1802. </xsl:template>
  1803. <xsl:template name="RangeNavigation">
  1804. <xsl:param name="idService" />
  1805. <xsl:param name="iStart" />
  1806. <xsl:param name="cSize" />
  1807. <xsl:param name="cMax" />
  1808. <xsl:param name="sPosition" />
  1809. <xsl:variable name="sCount">
  1810. <xsl:if test="$cSize > 1">
  1811. <xsl:text><![CDATA[ ]]></xsl:text>
  1812. <xsl:value-of select="$cSize" />
  1813. </xsl:if>
  1814. </xsl:variable>
  1815. <xsl:variable name="sMax">
  1816. <xsl:choose>
  1817. <xsl:when test="$cMax > $iStart">
  1818. <xsl:value-of select="$cMax" />
  1819. </xsl:when>
  1820. <xsl:otherwise>
  1821. <xsl:value-of select="$iStart + $cSize + 1" />
  1822. </xsl:otherwise>
  1823. </xsl:choose>
  1824. </xsl:variable>
  1825. <xsl:variable name="idClass">
  1826. <xsl:choose>
  1827. <xsl:when test="$sPosition = 'top'">#2107</xsl:when>
  1828. <xsl:when test="$sPosition = 'middle'">#2108</xsl:when>
  1829. <xsl:when test="$sPosition = 'bottom'">#2109</xsl:when>
  1830. </xsl:choose>
  1831. </xsl:variable>
  1832. <element layoutChildren="flow" id="#2044" sheet="#Orientation" class="{$idClass}" alignChildren="left" sameHeightChildren="true" eventHandler="RefRangeEL">
  1833. <xsl:if test="$iStart > 1">
  1834. <hyperlink isAcceleratorIgnored="true" id="#2056" >
  1835. <xsl:attribute name="text">
  1836. <xsl:text>:rcstring(0x01820010L)</xsl:text>
  1837. </xsl:attribute>
  1838. </hyperlink>
  1839. </xsl:if>
  1840. <xsl:if test="$iStart > 1 and $iStart + $cSize - 1  < $cMax">
  1841. <label text="|"/>
  1842. </xsl:if>
  1843. <xsl:if test="$iStart + $cSize - 1  < $cMax">
  1844. <hyperlink isAcceleratorIgnored="true" id="#2055" >
  1845. <xsl:attribute name="text">
  1846. <xsl:text>:rcstring(0x01820011L)</xsl:text>
  1847. </xsl:attribute>
  1848. </hyperlink>
  1849. </xsl:if>
  1850. <label isAcceleratorIgnored="true" id="#2069" text="{$iStart}" isVisible="false" layoutPosition="none"  />
  1851. <label isAcceleratorIgnored="true" id="#2070"  text="{$cSize}"  isVisible="false" layoutPosition="none"  />
  1852. <label isAcceleratorIgnored="true" id="#2071"   text="{$cMax}"   isVisible="false" layoutPosition="none"  />
  1853. </element>
  1854. </xsl:template>
  1855. <xsl:template name="StatusTitle">
  1856. <xsl:param name="sStatus"/>
  1857. <xsl:choose>
  1858. <xsl:when test="$sStatus='SUCCESS'"></xsl:when>
  1859. <xsl:when test="$sStatus='ERROR_NO_RESPONSE'">:rcstring(0x01820021L)</xsl:when>
  1860. <xsl:when test="$sStatus='ERROR'">:rcstring(0x01820023L)</xsl:when>
  1861. <xsl:when test="$sStatus='ERROR_NO_RESULTS_FOUND'">:rcstring(0x01820023L)</xsl:when>
  1862. <xsl:when test="$sStatus='ERROR_SERVER'">:rcstring(0x01820023L)</xsl:when>
  1863. <xsl:when test="$sStatus='ERROR_BAD_PARAMETERS'">:rcstring(0x01820024L)</xsl:when>
  1864. <xsl:when test="$sStatus='ERROR_OUT_OF_ORDER'">:rcstring(0x01820025L)</xsl:when>
  1865. <xsl:when test="$sStatus='ERROR_SERVER_TRANSIENT'">:rcstring(0x01820025L)</xsl:when>
  1866. <xsl:when test="$sStatus='ERROR_NO_CONNECTION'">:rcstring(0x01820026L)</xsl:when>
  1867. <xsl:when test="$sStatus='ERROR_NO_AUTHENTICATION'">:rcstring(0x01820027L)</xsl:when>
  1868. <xsl:when test="$sStatus='ERROR_NO_AUTHORIZATION'">:rcstring(0x01820028L)</xsl:when>
  1869. <xsl:otherwise>:rcstring(0x01820022L)</xsl:otherwise>
  1870. </xsl:choose>
  1871. </xsl:template>
  1872. <xsl:template name="QueryResponse">
  1873. <xsl:param name="pContext" /><xsl:param name="idService" />
  1874. <xsl:param name="fRequery" />
  1875. <xsl:param name="pOriginator" />
  1876. <xsl:param name="sStatus" />
  1877. <xsl:param name="fAlwaysSearched" />
  1878. <xsl:apply-templates select="$pContext"><xsl:with-param name="idService" select="$idService" />
  1879. <xsl:with-param name="sStatus" select="$sStatus" />
  1880. <xsl:with-param name="pOriginator" select="$pOriginator" />
  1881. <xsl:with-param name="fAlwaysSearched" select="$fAlwaysSearched" />
  1882. </xsl:apply-templates>
  1883. </xsl:template>
  1884. <xsl:template name="NewQueryResponse">
  1885. <xsl:param name="pContext" /><xsl:param name="sRevision" /><xsl:param name="sBuild" /><xsl:apply-templates select="$pContext" /></xsl:template>
  1886. <xsl:template name="FFromSForm">
  1887. <xsl:param name="sTest" />
  1888. <xsl:param name="fDefault" />
  1889. <xsl:choose>
  1890. <xsl:when test="$sTest = 'true'  or $sTest = 1">true</xsl:when>
  1891. <xsl:when test="$sTest = 'false' or $sTest = 0">false</xsl:when>
  1892. <xsl:when test="$fDefault != ''">
  1893. <xsl:value-of select="$fDefault" />
  1894. </xsl:when>
  1895. <xsl:otherwise>false</xsl:otherwise>
  1896. </xsl:choose>
  1897. </xsl:template>
  1898. <xsl:template name="TFromSForm">
  1899. <xsl:param name="sTest" />
  1900. <xsl:choose>
  1901. <xsl:when test="$sTest = 'true'  or $sTest = 1">true</xsl:when>
  1902. <xsl:when test="$sTest = 'false' or $sTest = 0">false</xsl:when>
  1903. <xsl:otherwise></xsl:otherwise>
  1904. </xsl:choose>
  1905. </xsl:template>
  1906. <xsl:template name="SFormAction">
  1907. <xsl:choose>
  1908. <xsl:when test="@action='requery'">requery</xsl:when>
  1909. <xsl:when test="@action='callback'">callback</xsl:when>
  1910. <xsl:otherwise>none</xsl:otherwise>
  1911. </xsl:choose>
  1912. </xsl:template>
  1913. <xsl:template name="IFormWidth">
  1914. <xsl:if test="@width != '' and @width > 0">
  1915. <xsl:value-of select="@width" />
  1916. </xsl:if>
  1917. </xsl:template>
  1918. <xsl:template match="f:Frame/f:Frame | f:Form/f:Frame">
  1919. <xsl:call-template name="ControlFrame">
  1920. <xsl:with-param name="pContext" select="f:Button | f:Checkbox | f:Edit | f:Hyperlink | f:Label | f:Listbox | f:NewQuery | f:RadioGroup | f:Hyperlink" />
  1921. <xsl:with-param name="fVertical" select="'fFalse'" />
  1922. </xsl:call-template>
  1923. </xsl:template>
  1924. <xsl:template match="f:Option/f:Frame | f:Checkbox/f:Frame">
  1925. <xsl:call-template name="ControlFrame">
  1926. <xsl:with-param name="pContext" select="f:Button | f:Checkbox | f:Edit | f:Label | f:Listbox | f:NewQuery | f:RadioGroup | f:Hyperlink" />
  1927. <xsl:with-param name="fVertical" select="'true'" />
  1928. </xsl:call-template>
  1929. </xsl:template>
  1930. <xsl:template match="f:Form/f:Label | f:Frame/f:Label">
  1931. <xsl:call-template name="Label">
  1932. <xsl:with-param name="tRtl" >
  1933. <xsl:call-template name="TFromSForm">
  1934. <xsl:with-param name="sTest" select="@rtl" />
  1935. </xsl:call-template>
  1936. </xsl:with-param>
  1937. <xsl:with-param name="sText">
  1938. <xsl:value-of select="text()" />
  1939. </xsl:with-param>
  1940. </xsl:call-template>
  1941. </xsl:template>
  1942. <xsl:template match="f:Form/f:Hyperlink | f:Frame/f:Hyperlink">
  1943. <xsl:if test="@id and @id!=''">
  1944. <xsl:call-template name="HyperLink">
  1945. <xsl:with-param name="idControl" select="@id" />
  1946. <xsl:with-param name="sSubmitUrl" select="@submitUrl" />
  1947. <xsl:with-param name="sTooltip" select="@tooltip" />
  1948. <xsl:with-param name="fWrapping" select="'true'" />
  1949. <xsl:with-param name="fDisabled" >
  1950. <xsl:call-template name="FFromSForm">
  1951. <xsl:with-param name="sTest" select="@disabled" />
  1952. </xsl:call-template>
  1953. </xsl:with-param>
  1954. <xsl:with-param name="tRtl" >
  1955. <xsl:call-template name="TFromSForm">
  1956. <xsl:with-param name="sTest" select="f:Text/@rtl" />
  1957. </xsl:call-template>
  1958. </xsl:with-param>
  1959. <xsl:with-param name="sText">
  1960. <xsl:value-of select="f:Text/text()" />
  1961. </xsl:with-param>
  1962. <xsl:with-param name="sAction">
  1963. <xsl:call-template name="SFormAction" />
  1964. </xsl:with-param>
  1965. </xsl:call-template>
  1966. </xsl:if>
  1967. </xsl:template>
  1968. <xsl:template match="f:Form/f:Edit | f:Frame/f:Edit">
  1969. <xsl:if test="@id and @id!=''">
  1970. <xsl:call-template name="Edit">
  1971. <xsl:with-param name="idControl" select="@id" />
  1972. <xsl:with-param name="sSubmitUrl" select="@submitUrl" />
  1973. <xsl:with-param name="sValue" select="@value" />
  1974. <xsl:with-param name="fVertical">
  1975. <xsl:choose>
  1976. <xsl:when test="f:Text/@position = 'above'">true</xsl:when>
  1977. <xsl:otherwise>false</xsl:otherwise>
  1978. </xsl:choose>
  1979. </xsl:with-param>
  1980. <xsl:with-param name="iLimit">
  1981. <xsl:choose>
  1982. <xsl:when test="@limit and @limit > 0 and @limit < 4097">
  1983. <xsl:value-of select="@limit" />
  1984. </xsl:when>
  1985. <xsl:otherwise>256</xsl:otherwise>
  1986. </xsl:choose>
  1987. </xsl:with-param>
  1988. <xsl:with-param name="iWidth">
  1989. <xsl:call-template name="IFormWidth" />
  1990. </xsl:with-param>
  1991. <xsl:with-param name="fDisabled" >
  1992. <xsl:call-template name="FFromSForm">
  1993. <xsl:with-param name="sTest" select="@disabled" />
  1994. </xsl:call-template>
  1995. </xsl:with-param>
  1996. <xsl:with-param name="fPassword" >
  1997. <xsl:call-template name="FFromSForm">
  1998. <xsl:with-param name="sTest" select="@password" />
  1999. </xsl:call-template>
  2000. </xsl:with-param>
  2001. <xsl:with-param name="tRtlControl" >
  2002. <xsl:call-template name="TFromSForm">
  2003. <xsl:with-param name="sTest" select="@rtl" />
  2004. </xsl:call-template>
  2005. </xsl:with-param>
  2006. <xsl:with-param name="tRtl" >
  2007. <xsl:call-template name="TFromSForm">
  2008. <xsl:with-param name="sTest" select="f:Text/@rtl" />
  2009. </xsl:call-template>
  2010. </xsl:with-param>
  2011. <xsl:with-param name="sText">
  2012. <xsl:apply-templates select="f:Text/text()" />
  2013. </xsl:with-param>
  2014. <xsl:with-param name="sAction">
  2015. <xsl:call-template name="SFormAction" />
  2016. </xsl:with-param>
  2017. </xsl:call-template>
  2018. </xsl:if>
  2019. </xsl:template>
  2020. <xsl:template match="f:Form/f:RadioGroup | f:Frame/f:RadioGroup">
  2021. <xsl:if test="@id and @id!=''">
  2022. <xsl:call-template name="RadioGroup">
  2023. <xsl:with-param name="pContext" select="f:Option" />
  2024. <xsl:with-param name="idControl" select="@id" />
  2025. <xsl:with-param name="sSubmitUrl" select="@submitUrl" />
  2026. <xsl:with-param name="fDisabled" >
  2027. <xsl:call-template name="FFromSForm">
  2028. <xsl:with-param name="sTest" select="@disabled" />
  2029. </xsl:call-template>
  2030. </xsl:with-param>
  2031. <xsl:with-param name="tRtl" >
  2032. <xsl:call-template name="TFromSForm">
  2033. <xsl:with-param name="sTest" select="f:Text/@rtl" />
  2034. </xsl:call-template>
  2035. </xsl:with-param>
  2036. <xsl:with-param name="tRtlGroup" >
  2037. <xsl:call-template name="TFromSForm">
  2038. <xsl:with-param name="sTest" select="@rtl" />
  2039. </xsl:call-template>
  2040. </xsl:with-param>
  2041. <xsl:with-param name="sText">
  2042. <xsl:value-of select="f:Text/text()" />
  2043. </xsl:with-param>
  2044. <xsl:with-param name="sAction">
  2045. <xsl:call-template name="SFormAction" />
  2046. </xsl:with-param>
  2047. </xsl:call-template>
  2048. </xsl:if>
  2049. </xsl:template>
  2050. <xsl:template match="f:RadioGroup/f:Option">
  2051. <xsl:param name="sAction" />
  2052. <xsl:param name="sSubmitUrl" />
  2053. <xsl:if test="@id and @id!=''">
  2054. <xsl:call-template name="RadioGroupOption">
  2055. <xsl:with-param name="idControl" select="@id" />
  2056. <xsl:with-param name="sSubmitUrl" select="$sSubmitUrl" />
  2057. <xsl:with-param name="sAction" select="$sAction" />
  2058. <xsl:with-param name="pContext" select="f:Frame" />
  2059. <xsl:with-param name="fChecked" >
  2060. <xsl:call-template name="FFromSForm">
  2061. <xsl:with-param name="sTest" select="@selected" />
  2062. </xsl:call-template>
  2063. </xsl:with-param>
  2064. <xsl:with-param name="fDisabled" >
  2065. <xsl:call-template name="FFromSForm">
  2066. <xsl:with-param name="sTest" select="@disabled" />
  2067. </xsl:call-template>
  2068. </xsl:with-param>
  2069. <xsl:with-param name="tRtl" >
  2070. <xsl:call-template name="TFromSForm">
  2071. <xsl:with-param name="sTest" select="f:Text/@rtl" />
  2072. </xsl:call-template>
  2073. </xsl:with-param>
  2074. <xsl:with-param name="sText">
  2075. <xsl:value-of select="f:Text/text()" />
  2076. </xsl:with-param>
  2077. </xsl:call-template>
  2078. </xsl:if>
  2079. </xsl:template>
  2080. <xsl:template match="f:Form/f:Checkbox | f:Frame/f:Checkbox">
  2081. <xsl:if test="@id and @id!=''">
  2082. <xsl:call-template name="CheckBox">
  2083. <xsl:with-param name="idControl" select="@id" />
  2084. <xsl:with-param name="sSubmitUrl" select="@submitUrl" />
  2085. <xsl:with-param name="pContext" select="f:Frame" />
  2086. <xsl:with-param name="fChecked" >
  2087. <xsl:call-template name="FFromSForm">
  2088. <xsl:with-param name="sTest" select="@selected" />
  2089. </xsl:call-template>
  2090. </xsl:with-param>
  2091. <xsl:with-param name="tRtl" >
  2092. <xsl:call-template name="TFromSForm">
  2093. <xsl:with-param name="sTest" select="f:Text/@rtl" />
  2094. </xsl:call-template>
  2095. </xsl:with-param>
  2096. <xsl:with-param name="fDisabled" >
  2097. <xsl:call-template name="FFromSForm">
  2098. <xsl:with-param name="sTest" select="@disabled" />
  2099. </xsl:call-template>
  2100. </xsl:with-param>
  2101. <xsl:with-param name="sText">
  2102. <xsl:value-of select="f:Text/text()" />
  2103. </xsl:with-param>
  2104. <xsl:with-param name="sAction">
  2105. <xsl:call-template name="SFormAction" />
  2106. </xsl:with-param>
  2107. </xsl:call-template>
  2108. </xsl:if>
  2109. </xsl:template>
  2110. <xsl:template match="f:Form/f:NewQuery | f:Frame/f:NewQuery">
  2111. <xsl:if test="@query != ''">
  2112. <xsl:call-template name="HyperLink">
  2113. <xsl:with-param name="sTooltip" select="@tooltip" />
  2114. <xsl:with-param name="sQuery" select="@query" />
  2115. <xsl:with-param name="fWrapping" select="'true'" />
  2116. <xsl:with-param name="sSubQuery" select="@category" />
  2117. <xsl:with-param name="sAction" >
  2118. <xsl:choose>
  2119. <xsl:when test="@action='category' or @action='auto' or @action='directed'">
  2120. <xsl:value-of select="@action" />
  2121. </xsl:when>
  2122. <xsl:otherwise>auto</xsl:otherwise>
  2123. </xsl:choose>
  2124. </xsl:with-param>
  2125. <xsl:with-param name="tRtl" >
  2126. <xsl:call-template name="TFromSForm">
  2127. <xsl:with-param name="sTest" select="f:Text/@rtl" />
  2128. </xsl:call-template>
  2129. </xsl:with-param>
  2130. <xsl:with-param name="fDisabled" >
  2131. <xsl:call-template name="FFromSForm">
  2132. <xsl:with-param name="sTest" select="@disabled" />
  2133. </xsl:call-template>
  2134. </xsl:with-param>
  2135. <xsl:with-param name="sText">
  2136. <xsl:value-of select="f:Text/text()" />
  2137. </xsl:with-param>
  2138. </xsl:call-template>
  2139. </xsl:if>
  2140. </xsl:template>
  2141. <xsl:template match="f:Form/f:Listbox | f:Frame/f:Listbox">
  2142. <xsl:if test="@id and @id!=''">
  2143. <xsl:call-template name="ListBox">
  2144. <xsl:with-param name="idControl" select="@id" />
  2145. <xsl:with-param name="sSubmitUrl" select="@submitUrl" />
  2146. <xsl:with-param name="pContext" select="f:Option" />
  2147. <xsl:with-param name="fVertical">
  2148. <xsl:choose>
  2149. <xsl:when test="f:Text/@position = 'above'">true</xsl:when>
  2150. <xsl:otherwise>false</xsl:otherwise>
  2151. </xsl:choose>
  2152. </xsl:with-param>
  2153. <xsl:with-param name="iWidth">
  2154. <xsl:call-template name="IFormWidth" />
  2155. </xsl:with-param>
  2156. <xsl:with-param name="fDropdown" >
  2157. <xsl:call-template name="FFromSForm">
  2158. <xsl:with-param name="sTest" select="@dropdown" />
  2159. <xsl:with-param name="fDefault" select="'true'" />
  2160. </xsl:call-template>
  2161. </xsl:with-param>
  2162. <xsl:with-param name="fDisabled" >
  2163. <xsl:call-template name="FFromSForm">
  2164. <xsl:with-param name="sTest" select="@disabled" />
  2165. </xsl:call-template>
  2166. </xsl:with-param>
  2167. <xsl:with-param name="tRtl" >
  2168. <xsl:call-template name="TFromSForm">
  2169. <xsl:with-param name="sTest" select="f:Text/@rtl" />
  2170. </xsl:call-template>
  2171. </xsl:with-param>
  2172. <xsl:with-param name="tRtlControl" >
  2173. <xsl:call-template name="TFromSForm">
  2174. <xsl:with-param name="sTest" select="@rtl" />
  2175. </xsl:call-template>
  2176. </xsl:with-param>
  2177. <xsl:with-param name="sText">
  2178. <xsl:value-of select="f:Text/text()" />
  2179. </xsl:with-param>
  2180. <xsl:with-param name="sAction">
  2181. <xsl:call-template name="SFormAction" />
  2182. </xsl:with-param>
  2183. </xsl:call-template>
  2184. </xsl:if>
  2185. </xsl:template>
  2186. <xsl:template match="f:Listbox/f:Option">
  2187. <xsl:if test="@id and @id!=''">
  2188. <xsl:call-template name="ListBoxOption">
  2189. <xsl:with-param name="idControl" select="@id" />
  2190. <xsl:with-param name="iLevel" select="@level" />
  2191. <xsl:with-param name="fSelected" >
  2192. <xsl:call-template name="FFromSForm">
  2193. <xsl:with-param name="sTest" select="@selected" />
  2194. </xsl:call-template>
  2195. </xsl:with-param>
  2196. <xsl:with-param name="sText">
  2197. <xsl:value-of select="f:Text" />
  2198. </xsl:with-param>
  2199. </xsl:call-template>
  2200. </xsl:if>
  2201. </xsl:template>
  2202. <xsl:template match="f:Form/f:Button | f:Frame/f:Button">
  2203. <xsl:if test="@id and @id!=''">
  2204. <xsl:call-template name="Button">
  2205. <xsl:with-param name="idControl" select="@id" />
  2206. <xsl:with-param name="sSubmitUrl" select="@submitUrl" />
  2207. <xsl:with-param name="sTooltip" select="@tooltip" />
  2208. <xsl:with-param name="sIcon" select="@icon" />
  2209. <xsl:with-param name="tRtl" >
  2210. <xsl:call-template name="TFromSForm">
  2211. <xsl:with-param name="sTest" select="f:Text/@rtl" />
  2212. </xsl:call-template>
  2213. </xsl:with-param>
  2214. <xsl:with-param name="fDisabled" >
  2215. <xsl:call-template name="FFromSForm">
  2216. <xsl:with-param name="sTest" select="@disabled" />
  2217. </xsl:call-template>
  2218. </xsl:with-param>
  2219. <xsl:with-param name="sText">
  2220. <xsl:value-of select="f:Text/text()" />
  2221. </xsl:with-param>
  2222. <xsl:with-param name="sAction">
  2223. <xsl:call-template name="SFormAction" />
  2224. </xsl:with-param>
  2225. </xsl:call-template>
  2226. </xsl:if>
  2227. </xsl:template>
  2228. <xsl:template match="f:Form">
  2229. <xsl:call-template name="Form">
  2230. <xsl:with-param name="pContext" select="f:Button | f:Edit | f:Checkbox | f:Hyperlink | f:Listbox | f:NewQuery | f:RadioGroup | f:Frame | f:Label" />
  2231. <xsl:with-param name="sRevision" select="@revision" />
  2232. <xsl:with-param name="sBuild" select="@build" />
  2233. <xsl:with-param name="tRtl" >
  2234. <xsl:call-template name="TFromSForm">
  2235. <xsl:with-param name="sTest" select="@rtl" />
  2236. </xsl:call-template>
  2237. </xsl:with-param>
  2238. <xsl:with-param name="fPropagate" >
  2239. <xsl:call-template name="FFromSForm">
  2240. <xsl:with-param name="sTest" select="@propagate" />
  2241. <xsl:with-param name="fDefault" select="'true'"/>
  2242. </xsl:call-template>
  2243. </xsl:with-param>
  2244. <xsl:with-param name="fSeparator" >
  2245. <xsl:call-template name="FFromSForm">
  2246. <xsl:with-param name="sTest" select="@separator" />
  2247. <xsl:with-param name="fDefault" select="'false'"/>
  2248. </xsl:call-template>
  2249. </xsl:with-param>
  2250. </xsl:call-template>
  2251. </xsl:template>
  2252. <xsl:template name="FFromS">
  2253. <xsl:param name="sTest" />
  2254. <xsl:param name="fDefault" />
  2255. <xsl:choose>
  2256. <xsl:when test="$sTest = 'true'  or $sTest = 1">true</xsl:when>
  2257. <xsl:when test="$sTest = 'false' or $sTest = 0">false</xsl:when>
  2258. <xsl:when test="$fDefault != ''">
  2259. <xsl:value-of select="$fDefault" />
  2260. </xsl:when>
  2261. <xsl:otherwise>false</xsl:otherwise>
  2262. </xsl:choose>
  2263. </xsl:template>
  2264. <xsl:template name="TFromS">
  2265. <xsl:param name="sTest" />
  2266. <xsl:choose>
  2267. <xsl:when test="$sTest = 'true'  or $sTest = 1">true</xsl:when>
  2268. <xsl:when test="$sTest = 'false' or $sTest = 0">false</xsl:when>
  2269. <xsl:otherwise></xsl:otherwise>
  2270. </xsl:choose>
  2271. </xsl:template>
  2272. <xsl:template match="c:Line/c:NewQuery">
  2273. <xsl:if test="@query != ''">
  2274. <xsl:call-template name="ContentNewQuery">
  2275. <xsl:with-param name="sTooltip" select="@tooltip" />
  2276. <xsl:with-param name="sQuery" select="@query" />
  2277. <xsl:with-param name="sCategory" select="@category" />
  2278. <xsl:with-param name="sFont" select="@font" />
  2279. <xsl:with-param name="sAction">
  2280. <xsl:choose>
  2281. <xsl:when test="@action='category' or @action='auto' or @action='directed'">
  2282. <xsl:value-of select="@action" />
  2283. </xsl:when>
  2284. <xsl:otherwise>auto</xsl:otherwise>
  2285. </xsl:choose>
  2286. </xsl:with-param>
  2287. <xsl:with-param name="tRtl" >
  2288. <xsl:call-template name="TFromS">
  2289. <xsl:with-param name="sTest" select="c:Text/@rtl" />
  2290. </xsl:call-template>
  2291. </xsl:with-param>
  2292. <xsl:with-param name="sText">
  2293. <xsl:value-of select="c:Text/text()" />
  2294. </xsl:with-param>
  2295. </xsl:call-template>
  2296. </xsl:if>
  2297. </xsl:template>
  2298. <xsl:template match="c:Heading/c:NewQuery | c:Content/c:NewQuery">
  2299. <xsl:if test="@query != ''">
  2300. <xsl:call-template name="ContentNewQuery">
  2301. <xsl:with-param name="sTooltip" select="@tooltip" />
  2302. <xsl:with-param name="sQuery" select="@query" />
  2303. <xsl:with-param name="sCategory" select="@category" />
  2304. <xsl:with-param name="sFont" select="@font" />
  2305. <xsl:with-param name="fWrapping" select="'true'" />
  2306. <xsl:with-param name="sAction">
  2307. <xsl:choose>
  2308. <xsl:when test="@action='category' or @action='auto' or @action='directed'">
  2309. <xsl:value-of select="@action" />
  2310. </xsl:when>
  2311. <xsl:otherwise>auto</xsl:otherwise>
  2312. </xsl:choose>
  2313. </xsl:with-param>
  2314. <xsl:with-param name="tRtl" >
  2315. <xsl:call-template name="TFromS">
  2316. <xsl:with-param name="sTest" select="c:Text/@rtl" />
  2317. </xsl:call-template>
  2318. </xsl:with-param>
  2319. <xsl:with-param name="sText">
  2320. <xsl:value-of select="c:Text/text()" />
  2321. </xsl:with-param>
  2322. </xsl:call-template>
  2323. </xsl:if>
  2324. </xsl:template>
  2325. <xsl:template match="c:Heading/c:Hyperlink | c:Content/c:Hyperlink">
  2326. <xsl:call-template name="ContentHyperLink">
  2327. <xsl:with-param name="sTooltip" select="@tooltip" />
  2328. <xsl:with-param name="sUrl" select="@url" />
  2329. <xsl:with-param name="fWrapping" select="'true'" />
  2330. <xsl:with-param name="sFont" select="@font" />
  2331. <xsl:with-param name="fPay">
  2332. <xsl:call-template name="FFromS">
  2333. <xsl:with-param name="sTest" select="@forPay"/>
  2334. </xsl:call-template>
  2335. </xsl:with-param>
  2336. <xsl:with-param name="tRtl" >
  2337. <xsl:call-template name="TFromS">
  2338. <xsl:with-param name="sTest" select="c:Text/@rtl" />
  2339. </xsl:call-template>
  2340. </xsl:with-param>
  2341. <xsl:with-param name="sText">
  2342. <xsl:value-of select="c:Text/text()" />
  2343. </xsl:with-param>
  2344. </xsl:call-template>
  2345. </xsl:template>
  2346. <xsl:template match="c:Line/c:Hyperlink">
  2347. <xsl:call-template name="ContentHyperLink">
  2348. <xsl:with-param name="sTooltip" select="@tooltip" />
  2349. <xsl:with-param name="sUrl" select="@url" />
  2350. <xsl:with-param name="fWrapping" select="'false'" />
  2351. <xsl:with-param name="sFont" select="@font" />
  2352. <xsl:with-param name="fPay">
  2353. <xsl:call-template name="FFromS">
  2354. <xsl:with-param name="sTest" select="@forPay"/>
  2355. </xsl:call-template>
  2356. </xsl:with-param>
  2357. <xsl:with-param name="tRtl" >
  2358. <xsl:call-template name="TFromS">
  2359. <xsl:with-param name="sTest" select="c:Text/@rtl" />
  2360. </xsl:call-template>
  2361. </xsl:with-param>
  2362. <xsl:with-param name="sText">
  2363. <xsl:value-of select="c:Text/text()" />
  2364. </xsl:with-param>
  2365. </xsl:call-template>
  2366. </xsl:template>
  2367. <xsl:template match="c:Heading/c:Insert | c:Content/c:Insert">
  2368. <xsl:call-template name="Insert">
  2369. <xsl:with-param name="sText">
  2370. <xsl:call-template name="ContentAction">
  2371. <xsl:with-param name="sText" select="c:Text/text()" />
  2372. <xsl:with-param name="sDefault">
  2373. <xsl:text>:rcstring(0x01820015L)</xsl:text>
  2374. </xsl:with-param>
  2375. </xsl:call-template>
  2376. </xsl:with-param>
  2377. <xsl:with-param name="psData1" select="c:Data" />
  2378. <xsl:with-param name="psData2" select="../c:P/." />
  2379. </xsl:call-template>
  2380. </xsl:template>
  2381. <xsl:template match="c:Line/c:Insert | c:P/c:Insert">
  2382. <xsl:call-template name="Insert">
  2383. <xsl:with-param name="sText">
  2384. <xsl:call-template name="ContentAction">
  2385. <xsl:with-param name="sText" select="c:Text/text()" />
  2386. <xsl:with-param name="sDefault">
  2387. <xsl:text>:rcstring(0x01820015L)</xsl:text>
  2388. </xsl:with-param>
  2389. </xsl:call-template>
  2390. </xsl:with-param>
  2391. <xsl:with-param name="psData1" select="c:Data" />
  2392. <xsl:with-param name="psData2" select="../text() | ../c:Char/text()" />
  2393. </xsl:call-template>
  2394. </xsl:template>
  2395. <xsl:template match="c:Heading/c:Copy | c:Content/c:Copy">
  2396. <xsl:call-template name="Copy">
  2397. <xsl:with-param name="sText">
  2398. <xsl:call-template name="ContentAction">
  2399. <xsl:with-param name="sText" select="c:Text/text()" />
  2400. <xsl:with-param name="sDefault">
  2401. <xsl:text>:rcstring(0x01820013L)</xsl:text>
  2402. </xsl:with-param>
  2403. </xsl:call-template>
  2404. </xsl:with-param>
  2405. <xsl:with-param name="psData1" select="c:Data" />
  2406. <xsl:with-param name="psData2" select="../c:P/." />
  2407. </xsl:call-template>
  2408. </xsl:template>
  2409. <xsl:template match="c:Line/c:Copy | c:P/c:Copy">
  2410. <xsl:call-template name="Copy">
  2411. <xsl:with-param name="sText">
  2412. <xsl:call-template name="ContentAction">
  2413. <xsl:with-param name="sText" select="c:Text/text()" />
  2414. <xsl:with-param name="sDefault">
  2415. <xsl:text>:rcstring(0x01820013L)</xsl:text>
  2416. </xsl:with-param>
  2417. </xsl:call-template>
  2418. </xsl:with-param>
  2419. <xsl:with-param name="psData1" select="c:Data" />
  2420. <xsl:with-param name="psData2" select="../text() | ../c:Char/text()" />
  2421. </xsl:call-template>
  2422. </xsl:template>
  2423. <xsl:template match="c:Heading/c:Tabular | c:Content/c:Tabular">
  2424. <xsl:call-template name="Tabular">
  2425. <xsl:with-param name="pContext" select="c:Record" />
  2426. <xsl:with-param name="sTitle" select="@title" />
  2427. </xsl:call-template>
  2428. </xsl:template>
  2429. <xsl:template match="c:Tabular/c:Record">
  2430. <xsl:call-template name="Record">
  2431. <xsl:with-param name="tRtl" >
  2432. <xsl:call-template name="TFromS">
  2433. <xsl:with-param name="sTest" select="@rtl" />
  2434. </xsl:call-template>
  2435. </xsl:with-param>
  2436. <xsl:with-param name="sName" select="c:Name/text()" />
  2437. <xsl:with-param name="fNameBold" >
  2438. <xsl:call-template name="FFromS">
  2439. <xsl:with-param name="sTest" select="c:Name/@bold" />
  2440. </xsl:call-template>
  2441. </xsl:with-param>
  2442. <xsl:with-param name="tNameRtl">
  2443. <xsl:call-template name="TFromS">
  2444. <xsl:with-param name="sTest" select="c:Name/@rtl" />
  2445. </xsl:call-template>
  2446. </xsl:with-param>
  2447. <xsl:with-param name="sValue" select="c:Value/text()" />
  2448. <xsl:with-param name="fValueBold" >
  2449. <xsl:call-template name="FFromS">
  2450. <xsl:with-param name="sTest" select="c:Value/@bold" />
  2451. </xsl:call-template>
  2452. </xsl:with-param>
  2453. <xsl:with-param name="tValueRtl">
  2454. <xsl:call-template name="TFromS">
  2455. <xsl:with-param name="sTest" select="c:Value/@rtl" />
  2456. </xsl:call-template>
  2457. </xsl:with-param>
  2458. <xsl:with-param name="fBorders">
  2459. <xsl:call-template name="FFromS">
  2460. <xsl:with-param name="sTest" select="@borders" />
  2461. <xsl:with-param name="fDefault" select="'true'" />
  2462. </xsl:call-template>
  2463. </xsl:with-param>
  2464. <xsl:with-param name="fDefaultAllowed">
  2465. <xsl:call-template name="FFromS">
  2466. <xsl:with-param name="sTest" select="c:Actions/@defaultAllowed" />
  2467. <xsl:with-param name="fDefault" select="'true'" />
  2468. </xsl:call-template>
  2469. </xsl:with-param>
  2470. <xsl:with-param name="pAction" select="c:Actions" />
  2471. <xsl:with-param name="fAction">
  2472. <xsl:if test="c:Actions/c:Insert or c:Actions/c:Copy or c:Actions/c:Hyperlink or c:Actions/c:NewQuery or c:Actions/c:Custom">true</xsl:if>
  2473. </xsl:with-param>
  2474. </xsl:call-template>
  2475. </xsl:template>
  2476. <xsl:template match="c:Line/c:Image | c:Heading/c:Image | c:Content/c:Image">
  2477. <xsl:variable name="sIcon">
  2478. <xsl:choose>
  2479. <xsl:when test="@icon='Spelling'">Spelling</xsl:when>
  2480. <xsl:when test="@icon='FileSearch'">FileSearch</xsl:when>
  2481. <xsl:when test="@icon='Research'">Research</xsl:when>
  2482. <xsl:when test="@icon='ClipArt'">ClipArt</xsl:when>
  2483. <xsl:when test="@icon='Help'">Help</xsl:when>
  2484. <xsl:when test="@icon='MSN'">MSN</xsl:when>
  2485. <xsl:when test="@icon!=''">
  2486. <xsl:value-of select="@icon" />
  2487. </xsl:when>
  2488. </xsl:choose>
  2489. </xsl:variable>
  2490. <xsl:choose>
  2491. <xsl:when test="$sIcon != ''">
  2492. <xsl:call-template name="Image">
  2493. <xsl:with-param name="sTooltip" select="@tooltip" />
  2494. <xsl:with-param name="sAltText" select="@altText" />
  2495. <xsl:with-param name="sSource" select="$sIcon" />
  2496. <xsl:with-param name="fIcon" select="'true'" />
  2497. </xsl:call-template>
  2498. </xsl:when>
  2499. <xsl:when test="@source != ''">
  2500. <xsl:call-template name="Image">
  2501. <xsl:with-param name="sTooltip" select="@tooltip" />
  2502. <xsl:with-param name="sAltText" select="@altText" />
  2503. <xsl:with-param name="sSource" select="@source" />
  2504. <xsl:with-param name="fIcon" select="'false'" />
  2505. </xsl:call-template>
  2506. </xsl:when>
  2507. </xsl:choose>
  2508. </xsl:template>
  2509. <xsl:template match="c:Line/c:Char">
  2510. <xsl:call-template name="Text">
  2511. <xsl:with-param name="tStrong" >
  2512. <xsl:call-template name="TFromS">
  2513. <xsl:with-param name="sTest" select="@bold" />
  2514. </xsl:call-template>
  2515. </xsl:with-param>
  2516. <xsl:with-param name="tEmphasis" >
  2517. <xsl:call-template name="TFromS">
  2518. <xsl:with-param name="sTest" select="@italic" />
  2519. </xsl:call-template>
  2520. </xsl:with-param>
  2521. <xsl:with-param name="tSmallcaps" >
  2522. <xsl:call-template name="TFromS">
  2523. <xsl:with-param name="sTest" select="@smallCaps" />
  2524. </xsl:call-template>
  2525. </xsl:with-param>
  2526. <xsl:with-param name="tUnderline" >
  2527. <xsl:call-template name="TFromS">
  2528. <xsl:with-param name="sTest" select="@underline" />
  2529. </xsl:call-template>
  2530. </xsl:with-param>
  2531. <xsl:with-param name="tSubscript" >
  2532. <xsl:call-template name="TFromS">
  2533. <xsl:with-param name="sTest" select="@subscript" />
  2534. </xsl:call-template>
  2535. </xsl:with-param>
  2536. <xsl:with-param name="tSuperscript" >
  2537. <xsl:call-template name="TFromS">
  2538. <xsl:with-param name="sTest" select="@superscript" />
  2539. </xsl:call-template>
  2540. </xsl:with-param>
  2541. <xsl:with-param name="tLight" >
  2542. <xsl:call-template name="TFromS">
  2543. <xsl:with-param name="sTest" select="@light" />
  2544. </xsl:call-template>
  2545. </xsl:with-param>
  2546. <xsl:with-param name="tRtl" >
  2547. <xsl:call-template name="TFromS">
  2548. <xsl:with-param name="sTest" select="@rtl" />
  2549. </xsl:call-template>
  2550. </xsl:with-param>
  2551. <xsl:with-param name="fPadding">
  2552. <xsl:choose>
  2553. <xsl:when test="position()=1">first</xsl:when>
  2554. <xsl:when test="@noPadding = 'true' or @noPadding = 1">false</xsl:when>
  2555. <xsl:otherwise>true</xsl:otherwise>
  2556. </xsl:choose>
  2557. </xsl:with-param>
  2558. <xsl:with-param name="sFont" select="@font" />
  2559. <xsl:with-param name="fWrapping" select="'false'" />
  2560. <xsl:with-param name="sText" select="./text()" />
  2561. <xsl:with-param name="sType" select="'char'" />
  2562. </xsl:call-template>
  2563. </xsl:template>
  2564. <xsl:template match="c:P/c:Char | c:Char/c:Char">
  2565. <xsl:call-template name="Text">
  2566. <xsl:with-param name="tStrong" >
  2567. <xsl:call-template name="TFromS">
  2568. <xsl:with-param name="sTest" select="@bold" />
  2569. </xsl:call-template>
  2570. </xsl:with-param>
  2571. <xsl:with-param name="tEmphasis" >
  2572. <xsl:call-template name="TFromS">
  2573. <xsl:with-param name="sTest" select="@italic" />
  2574. </xsl:call-template>
  2575. </xsl:with-param>
  2576. <xsl:with-param name="tSmallcaps" >
  2577. <xsl:call-template name="TFromS">
  2578. <xsl:with-param name="sTest" select="@smallCaps" />
  2579. </xsl:call-template>
  2580. </xsl:with-param>
  2581. <xsl:with-param name="tUnderline" >
  2582. <xsl:call-template name="TFromS">
  2583. <xsl:with-param name="sTest" select="@underline" />
  2584. </xsl:call-template>
  2585. </xsl:with-param>
  2586. <xsl:with-param name="tSubscript" >
  2587. <xsl:call-template name="TFromS">
  2588. <xsl:with-param name="sTest" select="@subscript" />
  2589. </xsl:call-template>
  2590. </xsl:with-param>
  2591. <xsl:with-param name="tSuperscript" >
  2592. <xsl:call-template name="TFromS">
  2593. <xsl:with-param name="sTest" select="@superscript" />
  2594. </xsl:call-template>
  2595. </xsl:with-param>
  2596. <xsl:with-param name="tLight" >
  2597. <xsl:call-template name="TFromS">
  2598. <xsl:with-param name="sTest" select="@light" />
  2599. </xsl:call-template>
  2600. </xsl:with-param>
  2601. <xsl:with-param name="fPadding">
  2602. <xsl:choose>
  2603. <xsl:when test="@noPadding = 'false' or @noPadding = 0">true</xsl:when>
  2604. <xsl:otherwise>false</xsl:otherwise>
  2605. </xsl:choose>
  2606. </xsl:with-param>
  2607. <xsl:with-param name="tRtl" >
  2608. <xsl:call-template name="TFromS">
  2609. <xsl:with-param name="sTest" select="@rtl" />
  2610. </xsl:call-template>
  2611. </xsl:with-param>
  2612. <xsl:with-param name="sFont" select="@font" />
  2613. <xsl:with-param name="fWrapping" select="'false'" />
  2614. <xsl:with-param name="pContext" select="text() | c:Char" />
  2615. <xsl:with-param name="sType" select="'nested'" />
  2616. </xsl:call-template>
  2617. </xsl:template>
  2618. <xsl:template match="c:Heading/c:HorizontalRule | c:Content/c:HorizontalRule">
  2619. <xsl:call-template name="HR" />
  2620. </xsl:template>
  2621. <xsl:template match="c:Heading/c:P | c:Content/c:P">
  2622. <xsl:call-template name="Text">
  2623. <xsl:with-param name="tStrong" >
  2624. <xsl:call-template name="TFromS">
  2625. <xsl:with-param name="sTest" select="@bold" />
  2626. </xsl:call-template>
  2627. </xsl:with-param>
  2628. <xsl:with-param name="tEmphasis" >
  2629. <xsl:call-template name="TFromS">
  2630. <xsl:with-param name="sTest" select="@italic" />
  2631. </xsl:call-template>
  2632. </xsl:with-param>
  2633. <xsl:with-param name="tSmallcaps" >
  2634. <xsl:call-template name="TFromS">
  2635. <xsl:with-param name="sTest" select="@smallCaps" />
  2636. </xsl:call-template>
  2637. </xsl:with-param>
  2638. <xsl:with-param name="tUnderline" >
  2639. <xsl:call-template name="TFromS">
  2640. <xsl:with-param name="sTest" select="@underline" />
  2641. </xsl:call-template>
  2642. </xsl:with-param>
  2643. <xsl:with-param name="tSubscript" >
  2644. <xsl:call-template name="TFromS">
  2645. <xsl:with-param name="sTest" select="@subscript" />
  2646. </xsl:call-template>
  2647. </xsl:with-param>
  2648. <xsl:with-param name="tSuperscript" >
  2649. <xsl:call-template name="TFromS">
  2650. <xsl:with-param name="sTest" select="@superscript" />
  2651. </xsl:call-template>
  2652. </xsl:with-param>
  2653. <xsl:with-param name="tLight" >
  2654. <xsl:call-template name="TFromS">
  2655. <xsl:with-param name="sTest" select="@light" />
  2656. </xsl:call-template>
  2657. </xsl:with-param>
  2658. <xsl:with-param name="sFont" select="@font" />
  2659. <xsl:with-param name="pContext" select="text() | c:Char" />
  2660. <xsl:with-param name="fWrapping" select="'true'" />
  2661. <xsl:with-param name="sType" select="'paragraph'" />
  2662. <xsl:with-param name="tRtl" >
  2663. <xsl:call-template name="TFromS">
  2664. <xsl:with-param name="sTest" select="@rtl" />
  2665. </xsl:call-template>
  2666. </xsl:with-param>
  2667. <xsl:with-param name="pAction" select="c:Actions | c:Copy | c:Insert" />
  2668. </xsl:call-template>
  2669. </xsl:template>
  2670. <xsl:template match="c:Heading/c:Line | c:Content/c:Line">
  2671. <xsl:call-template name="Line">
  2672. <xsl:with-param name="pContext" select="c:Char | c:Hyperlink | c:NewQuery | c:Image | c:Actions | c:Copy | c:Insert " />
  2673. <xsl:with-param name="tRtl" >
  2674. <xsl:call-template name="TFromS">
  2675. <xsl:with-param name="sTest" select="@rtl" />
  2676. </xsl:call-template>
  2677. </xsl:with-param>
  2678. </xsl:call-template>
  2679. </xsl:template>
  2680. <xsl:template match="c:Record/c:Actions">
  2681. <xsl:call-template name="ActionMatch">
  2682. <xsl:with-param name="sMode" select="'dropmenu'"/>
  2683. <xsl:with-param name="pData" select="../c:Name/. | ../c:Value/." />
  2684. <xsl:with-param name="sName" >
  2685. <xsl:value-of select="../c:Name/text()"/>
  2686. <xsl:text> </xsl:text>
  2687. <xsl:value-of select="../c:Value/text()"/>
  2688. </xsl:with-param>
  2689. </xsl:call-template>
  2690. </xsl:template>
  2691. <xsl:template match="c:Heading/c:Actions | c:Content/c:Actions">
  2692. <xsl:variable name="fDefault">
  2693. <xsl:call-template name="FFromS">
  2694. <xsl:with-param name="sTest" select="@defaultAllowed"/>
  2695. <xsl:with-param name="fDefault" select="'true'" />
  2696. </xsl:call-template>
  2697. </xsl:variable>
  2698. <xsl:call-template name="ActionMatch">
  2699. <xsl:with-param name="sMode">
  2700. <xsl:choose>
  2701. <xsl:when test="$fDefault = 'false'">menubutton</xsl:when>
  2702. <xsl:otherwise>splitdd</xsl:otherwise>
  2703. </xsl:choose>
  2704. </xsl:with-param>
  2705. <xsl:with-param name="pData" select="../c:P/." />
  2706. </xsl:call-template>
  2707. </xsl:template>
  2708. <xsl:template match="c:Line/c:Actions | c:P/c:Actions">
  2709. <xsl:variable name="fDefault">
  2710. <xsl:call-template name="FFromS">
  2711. <xsl:with-param name="sTest" select="@defaultAllowed"/>
  2712. <xsl:with-param name="fDefault" select="'true'" />
  2713. </xsl:call-template>
  2714. </xsl:variable>
  2715. <xsl:call-template name="ActionMatch">
  2716. <xsl:with-param name="sMode">
  2717. <xsl:choose>
  2718. <xsl:when test="$fDefault = 'false'">menubutton</xsl:when>
  2719. <xsl:otherwise>splitdd</xsl:otherwise>
  2720. </xsl:choose>
  2721. </xsl:with-param>
  2722. <xsl:with-param name="pData" select="../text() | ../c:Char/text()" />
  2723. <xsl:with-param name="sData">
  2724. <xsl:for-each select="../text() | ../c:Char/text()">
  2725. <xsl:value-of select="."/>
  2726. </xsl:for-each>
  2727. </xsl:with-param>
  2728. </xsl:call-template>
  2729. </xsl:template>
  2730. <xsl:template name="ActionMatch" >
  2731. <xsl:param name="sMode" />
  2732. <xsl:param name="pData" />
  2733. <xsl:param name="sData" />
  2734. <xsl:param name="sName" />
  2735. <xsl:variable name="sInsert">
  2736. <xsl:if test="c:Insert">
  2737. <xsl:call-template name="ContentAction">
  2738. <xsl:with-param name="sText" select="c:Insert/c:Text/text()" />
  2739. <xsl:with-param name="sDefault">
  2740. <xsl:text>:rcstring(0x01820014L)</xsl:text>
  2741. </xsl:with-param>
  2742. </xsl:call-template>
  2743. </xsl:if>
  2744. </xsl:variable>
  2745. <xsl:variable name="sCopy">
  2746. <xsl:if test="c:Copy">
  2747. <xsl:call-template name="ContentAction">
  2748. <xsl:with-param name="sText" select="c:Copy/c:Text/text()" />
  2749. <xsl:with-param name="sDefault">
  2750. <xsl:text>:rcstring(0x01820012L)</xsl:text>
  2751. </xsl:with-param>
  2752. </xsl:call-template>
  2753. </xsl:if>
  2754. </xsl:variable>
  2755. <xsl:variable name="fFlat">
  2756. <xsl:choose>
  2757. <xsl:when test="count(c:Custom) = '1'">true</xsl:when>
  2758. <xsl:otherwise>false</xsl:otherwise>
  2759. </xsl:choose>
  2760. </xsl:variable>
  2761. <xsl:variable name="sDefault">
  2762. <xsl:choose>
  2763. <xsl:when test="c:Insert/@default='true'    or c:Insert/@default = 1">insert</xsl:when>
  2764. <xsl:when test="c:Copy/@default='true'      or c:Copy/@default = 1">copy</xsl:when>
  2765. <xsl:when test="not(c:Insert) and not(c:Copy) and not(c:NewQuery) and not(c:Hyperlink)">none</xsl:when>
  2766. <xsl:otherwise>unknown</xsl:otherwise>
  2767. </xsl:choose>
  2768. </xsl:variable>
  2769. <xsl:if test="$sInsert!='' or $sCopy!='' or c:Hyperlink or c:NewQuery or c:Custom">
  2770. <xsl:call-template name="Actions">
  2771. <xsl:with-param name="sName"   select="$sName" />
  2772. <xsl:with-param name="sText"   select="c:Text/text()" />
  2773. <xsl:with-param name="sCopy"   select="$sCopy" />
  2774. <xsl:with-param name="sInsert" select="$sInsert" />
  2775. <xsl:with-param name="pCustom" select="c:Custom" />
  2776. <xsl:with-param name="fFlat"   select="$fFlat" />
  2777. <xsl:with-param name="pLinks"  select="c:NewQuery | c:Hyperlink" />
  2778. <xsl:with-param name="pData1"  select="c:Data" />
  2779. <xsl:with-param name="pData2"  select="$pData" />
  2780. <xsl:with-param name="sData3"  select="$sData" />
  2781. <xsl:with-param name="sMode"   select="$sMode" />
  2782. <xsl:with-param name="sDefault">
  2783. <xsl:if test="$sMode != 'menubutton'">
  2784. <xsl:value-of select="$sDefault" />
  2785. </xsl:if>
  2786. </xsl:with-param>
  2787. </xsl:call-template>
  2788. </xsl:if>
  2789. </xsl:template>
  2790. <xsl:template match="@*|node()" mode="content">
  2791. <xsl:param name="mode" />
  2792. <xsl:param name="uri" />
  2793. <xsl:choose>
  2794. <xsl:when test="$mode='copy'">
  2795. <xsl:copy>
  2796. <xsl:copy-of select="@*" />
  2797. <xsl:apply-templates mode="content">
  2798. <xsl:with-param name="mode" select="'copy'" />
  2799. <xsl:with-param name="uri" select="$uri" />
  2800. </xsl:apply-templates>
  2801. </xsl:copy>
  2802. </xsl:when>
  2803. <xsl:when test="$mode='encode'">
  2804. <xsl:choose>
  2805. <xsl:when test="local-name() != ''">
  2806. <xsl:variable name="szUri" select="namespace-uri()" />
  2807. <xsl:text><</xsl:text>
  2808. <xsl:value-of select="local-name()"/>
  2809. <xsl:if test="namespace-uri() != $uri">
  2810. <xsl:text> xmlns='</xsl:text>
  2811. <xsl:value-of select="namespace-uri()"/>
  2812. <xsl:text>'</xsl:text>
  2813. </xsl:if>
  2814. <xsl:for-each select="@*">
  2815. <xsl:text> </xsl:text>
  2816. <xsl:choose>
  2817. <xsl:when test="namespace-uri() != $szUri">
  2818. <xsl:value-of select="name()"/>
  2819. </xsl:when>
  2820. <xsl:otherwise>
  2821. <xsl:value-of select="local-name()"/>
  2822. </xsl:otherwise>
  2823. </xsl:choose>
  2824. <xsl:text>='</xsl:text>
  2825. <xsl:variable name="sTmp">
  2826. <xsl:value-of select="." />
  2827. </xsl:variable>
  2828. <xsl:value-of select="translate($sTmp, '<>&', '⋘⋙⋏')" />
  2829. <xsl:text>'</xsl:text>
  2830. </xsl:for-each>
  2831. <xsl:text>></xsl:text>
  2832. <xsl:apply-templates mode="content">
  2833. <xsl:with-param name="mode" select="'encode'" />
  2834. <xsl:with-param name="uri" select="namespace-uri()"/>
  2835. </xsl:apply-templates>
  2836. <xsl:text></</xsl:text>
  2837. <xsl:value-of select="local-name()"/>
  2838. <xsl:text>></xsl:text>
  2839. </xsl:when>
  2840. <xsl:otherwise>
  2841. <xsl:variable name="sTmp">
  2842. <xsl:value-of select="." />
  2843. </xsl:variable>
  2844. <xsl:value-of select="translate($sTmp, '<>&', '⋘⋙⋏')" />
  2845. </xsl:otherwise>
  2846. </xsl:choose>
  2847. </xsl:when>
  2848. </xsl:choose>
  2849. </xsl:template>
  2850. <xsl:template match="c:Actions/c:Custom">
  2851. <xsl:param name="fFlat" />
  2852. <xsl:variable name="sXml">
  2853. <xsl:text><xml xmlns='</xsl:text>
  2854. <xsl:value-of select="namespace-uri(*)"/>
  2855. <xsl:text>'</xsl:text>
  2856. <xsl:text>></xsl:text>
  2857. <xsl:apply-templates select="*" mode="content">
  2858. <xsl:with-param name="mode" select="'encode'" />
  2859. <xsl:with-param name="uri" select="namespace-uri(*)"/>
  2860. </xsl:apply-templates>
  2861. <xsl:text></xml></xsl:text>
  2862. </xsl:variable>
  2863. <xsl:variable name="sPropBag" >
  2864. <xsl:for-each select="*/@*">
  2865. <xsl:value-of select="name()"/>
  2866. <xsl:text>='</xsl:text>
  2867. <xsl:value-of select="."/>
  2868. <xsl:text>'</xsl:text>
  2869. <xsl:text> </xsl:text>
  2870. </xsl:for-each>
  2871. </xsl:variable>
  2872. <xsl:variable name="sName">
  2873. <xsl:value-of select="local-name(*)" />
  2874. </xsl:variable>
  2875. <xsl:variable name="sXMLNS">
  2876. <xsl:value-of select="namespace-uri(*)" />
  2877. </xsl:variable>
  2878. <xsl:variable name="sTag">
  2879. <xsl:apply-templates select="*" mode="content">
  2880. <xsl:with-param name="mode" select="'encode'" />
  2881. <xsl:with-param name="uri" select="namespace-uri(*)"/>
  2882. </xsl:apply-templates>
  2883. </xsl:variable>
  2884. <xsl:variable name="sUrl">
  2885. <xsl:value-of select="@url" />
  2886. </xsl:variable>
  2887. <xsl:if test="$sXml != '' and $sName != '' and $sXMLNS != '' and $sTag != ''">
  2888. <xsl:call-template name="Factoid">
  2889. <xsl:with-param name="sXml" select="$sXml" />
  2890. <xsl:with-param name="sName" select="$sName" />
  2891. <xsl:with-param name="sXMLNS" select="$sXMLNS" />
  2892. <xsl:with-param name="sTag" select="$sTag" />
  2893. <xsl:with-param name="sUrl" select="$sUrl" />
  2894. <xsl:with-param name="sPropBag" select="$sPropBag" />
  2895. <xsl:with-param name="fFlat" select="$fFlat" />
  2896. <xsl:with-param name="sDisplayname">
  2897. <xsl:choose>
  2898. <xsl:when test="@displayName and @displayName != ''">
  2899. <xsl:value-of select="@displayName" />
  2900. </xsl:when>
  2901. <xsl:otherwise>
  2902. <xsl:value-of select="$sName" />
  2903. </xsl:otherwise>
  2904. </xsl:choose>
  2905. </xsl:with-param>
  2906. </xsl:call-template>
  2907. </xsl:if>
  2908. </xsl:template>
  2909. <xsl:template match="c:Actions/c:NewQuery">
  2910. <xsl:param name="fAllowed" />
  2911. <xsl:param name="mode" />
  2912. <xsl:variable name="fDefault">
  2913. <xsl:if test="$fAllowed = 'true'">
  2914. <xsl:value-of select="@default" />
  2915. </xsl:if>
  2916. </xsl:variable>
  2917. <xsl:variable name="sText">
  2918. <xsl:call-template name="ContentAction">
  2919. <xsl:with-param name="sText" select="c:Text/text()" />
  2920. <xsl:with-param name="sDefault">
  2921. <xsl:text>:rcstring(0x01820016L)</xsl:text>
  2922. </xsl:with-param>
  2923. </xsl:call-template>
  2924. </xsl:variable>
  2925. <xsl:if test="@query and @query != ''">
  2926. <xsl:call-template name="ActionNewQuery">
  2927. <xsl:with-param name="sText" select="$sText" />
  2928. <xsl:with-param name="sQuery" select="@query" />
  2929. <xsl:with-param name="sCategory" select="@category" />
  2930. <xsl:with-param name="mode" select="$mode" />
  2931. <xsl:with-param name="sAction" >
  2932. <xsl:choose>
  2933. <xsl:when test="@action='category' or @action='auto' or @action='directed'">
  2934. <xsl:value-of select="@action" />
  2935. </xsl:when>
  2936. <xsl:otherwise>auto</xsl:otherwise>
  2937. </xsl:choose>
  2938. </xsl:with-param>
  2939. <xsl:with-param name="fDefault">
  2940. <xsl:call-template name="FFromS">
  2941. <xsl:with-param name="sTest" select="$fDefault" />
  2942. </xsl:call-template>
  2943. </xsl:with-param>
  2944. <xsl:with-param name="fNoIcon">
  2945. <xsl:call-template name="FFromS">
  2946. <xsl:with-param name="sTest" select="@noIcon" />
  2947. </xsl:call-template>
  2948. </xsl:with-param>
  2949. </xsl:call-template>
  2950. </xsl:if>
  2951. </xsl:template>
  2952. <xsl:template match="c:Actions/c:Hyperlink">
  2953. <xsl:param name="fAllowed" />
  2954. <xsl:param name="mode" />
  2955. <xsl:variable name="fDefault">
  2956. <xsl:if test="$fAllowed = 'true'">
  2957. <xsl:value-of select="@default" />
  2958. </xsl:if>
  2959. </xsl:variable>
  2960. <xsl:variable name="sText">
  2961. <xsl:call-template name="ContentAction">
  2962. <xsl:with-param name="sText" select="c:Text/text()" />
  2963. <xsl:with-param name="sDefault">
  2964. <xsl:text>:rcstring(0x01820017L)</xsl:text>
  2965. </xsl:with-param>
  2966. </xsl:call-template>
  2967. </xsl:variable>
  2968. <xsl:if test="@url and @url != ''">
  2969. <xsl:call-template name="ActionHyperlink">
  2970. <xsl:with-param name="sText" select="$sText" />
  2971. <xsl:with-param name="sUrl" select="@url" />
  2972. <xsl:with-param name="mode" select="$mode" />
  2973. <xsl:with-param name="fDefault">
  2974. <xsl:call-template name="FFromS">
  2975. <xsl:with-param name="sTest" select="$fDefault" />
  2976. </xsl:call-template>
  2977. </xsl:with-param>
  2978. <xsl:with-param name="fNoIcon">
  2979. <xsl:call-template name="FFromS">
  2980. <xsl:with-param name="sTest" select="@noIcon" />
  2981. </xsl:call-template>
  2982. </xsl:with-param>
  2983. <xsl:with-param name="fPay">
  2984. <xsl:call-template name="FFromS">
  2985. <xsl:with-param name="sTest" select="@forPay" />
  2986. </xsl:call-template>
  2987. </xsl:with-param>
  2988. </xsl:call-template>
  2989. </xsl:if>
  2990. </xsl:template>
  2991. <xsl:template name="ContentAction">
  2992. <xsl:param name="sText" />
  2993. <xsl:param name="sDefault" />
  2994. <xsl:choose>
  2995. <xsl:when test="$sText != ''">
  2996. <xsl:value-of select="$sText" />
  2997. </xsl:when>
  2998. <xsl:otherwise>
  2999. <xsl:value-of select="$sDefault" />
  3000. </xsl:otherwise>
  3001. </xsl:choose>
  3002. </xsl:template>
  3003. <xsl:template match="c:Content/c:Heading | c:Heading/c:Heading">
  3004. <xsl:param name="iLevel" />
  3005. <xsl:variable name="iLevelNew">
  3006. <xsl:choose>
  3007. <xsl:when test="@level < 5 and @level > 0 and @level > $iLevel">
  3008. <xsl:value-of select="@level + 1" />
  3009. </xsl:when>
  3010. <xsl:otherwise>
  3011. <xsl:value-of select="$iLevel + 1" />
  3012. </xsl:otherwise>
  3013. </xsl:choose>
  3014. </xsl:variable>
  3015. <xsl:variable name="sText">
  3016. <xsl:value-of select="c:Text/text()" />
  3017. </xsl:variable>
  3018. <xsl:choose>
  3019. <xsl:when test="$sText != ''">
  3020. <xsl:call-template name="Heading">
  3021. <xsl:with-param name="iLevel" select="$iLevelNew" />
  3022. <xsl:with-param name="pContext" select="c:P | c:Line | c:Heading | c:Hyperlink | c:Tabular | c:Image | c:NewQuery | c:HorizontalRule" />
  3023. <xsl:with-param name="sText" select="$sText" />
  3024. <xsl:with-param name="pAction" select="c:Actions | c:Copy | c:Insert" />
  3025. <xsl:with-param name="tCollapsible">
  3026. <xsl:choose>
  3027. <xsl:when test="count(*) > 1">
  3028. <xsl:call-template name="FFromS">
  3029. <xsl:with-param name="sTest" select="@collapsible" />
  3030. <xsl:with-param name="fDefault" select="'true'" />
  3031. </xsl:call-template>
  3032. </xsl:when>
  3033. <xsl:otherwise>
  3034. <xsl:text>false</xsl:text>
  3035. </xsl:otherwise>
  3036. </xsl:choose>
  3037. </xsl:with-param>
  3038. <xsl:with-param name="tCollapsed" >
  3039. <xsl:call-template name="FFromS">
  3040. <xsl:with-param name="sTest" select="@collapsed" />
  3041. </xsl:call-template>
  3042. </xsl:with-param>
  3043. <xsl:with-param name="tRtl" >
  3044. <xsl:call-template name="TFromS">
  3045. <xsl:with-param name="sTest" select="c:Text/@rtl" />
  3046. </xsl:call-template>
  3047. </xsl:with-param>
  3048. <xsl:with-param name="cLevelSkipped" select="$iLevelNew - $iLevel - 1" />
  3049. </xsl:call-template>
  3050. </xsl:when>
  3051. <xsl:otherwise>
  3052. <xsl:apply-templates select="c:P | c:Line | c:Heading | c:Hyperlink | c:Tabular | c:Image | c:NewQuery | c:HorizontalRule">
  3053. <xsl:with-param name="iLevel" select="$iLevelNew" />
  3054. </xsl:apply-templates>
  3055. </xsl:otherwise>
  3056. </xsl:choose>
  3057. </xsl:template>
  3058. <xsl:template match="c:Content">
  3059. <xsl:call-template name="Result">
  3060. <xsl:with-param name="pContext" select="c:P | c:Line | c:Heading | c:Hyperlink | c:Tabular | c:Image | c:NewQuery | c:Actions | c:Copy | c:Insert | c:HorizontalRule" />
  3061. <xsl:with-param name="sRevision" select="@revision" />
  3062. <xsl:with-param name="sBuild" select="@build" />
  3063. <xsl:with-param name="tRtl">
  3064. <xsl:call-template name="TFromS">
  3065. <xsl:with-param name="sTest" select="@rtl" />
  3066. </xsl:call-template>
  3067. </xsl:with-param>
  3068. </xsl:call-template>
  3069. </xsl:template>
  3070. <xsl:template match="@*|node()" mode="document">
  3071. <xsl:param name="mode" />
  3072. <xsl:param name="uri" />
  3073. <xsl:choose>
  3074. <xsl:when test="$mode='copy'">
  3075. <xsl:copy>
  3076. <xsl:copy-of select="@*" />
  3077. <xsl:apply-templates mode="document">
  3078. <xsl:with-param name="mode" select="'copy'" />
  3079. <xsl:with-param name="uri" select="$uri" />
  3080. </xsl:apply-templates>
  3081. </xsl:copy>
  3082. </xsl:when>
  3083. <xsl:when test="$mode='encode'">
  3084. <xsl:choose>
  3085. <xsl:when test="name() != ''">
  3086. <xsl:variable name="szUri" select="namespace-uri()" />
  3087. <xsl:text><</xsl:text>
  3088. <xsl:value-of select="name()"/>
  3089. <xsl:if test="namespace-uri() != $uri">
  3090. <xsl:text> xmlns='</xsl:text>
  3091. <xsl:value-of select="namespace-uri()"/>
  3092. <xsl:text>'</xsl:text>
  3093. </xsl:if>
  3094. <xsl:for-each select="@*">
  3095. <xsl:text> </xsl:text>
  3096. <xsl:choose>
  3097. <xsl:when test="namespace-uri() != $szUri">
  3098. <xsl:value-of select="name()"/>
  3099. </xsl:when>
  3100. <xsl:otherwise>
  3101. <xsl:value-of select="local-name()"/>
  3102. </xsl:otherwise>
  3103. </xsl:choose>
  3104. <xsl:text>='</xsl:text>
  3105. <xsl:variable name="sTmp">
  3106. <xsl:value-of select="." />
  3107. </xsl:variable>
  3108. <xsl:value-of select="translate($sTmp, '<>&', '⋘⋙⋏')" />
  3109. <xsl:text>'</xsl:text>
  3110. </xsl:for-each>
  3111. <xsl:text>></xsl:text>
  3112. <xsl:apply-templates mode="document">
  3113. <xsl:with-param name="mode" select="'encode'" />
  3114. <xsl:with-param name="uri" select="namespace-uri()"/>
  3115. </xsl:apply-templates>
  3116. <xsl:text></</xsl:text>
  3117. <xsl:value-of select="name()"/>
  3118. <xsl:text>></xsl:text>
  3119. </xsl:when>
  3120. <xsl:otherwise>
  3121. <xsl:variable name="sTmp">
  3122. <xsl:value-of select="." />
  3123. </xsl:variable>
  3124. <xsl:value-of select="translate($sTmp, '<>&', '⋘⋙⋏')" />
  3125. </xsl:otherwise>
  3126. </xsl:choose>
  3127. </xsl:when>
  3128. </xsl:choose>
  3129. </xsl:template>
  3130. <xsl:template match="d:Document">
  3131. <xsl:variable name="sDisplayUrl">
  3132. <xsl:choose>
  3133. <xsl:when test="d:DisplayUrl and d:DisplayUrl/text() != ''">
  3134. <xsl:value-of select="d:DisplayUrl/text()"/>
  3135. </xsl:when>
  3136. <xsl:when test="d:DestinationUrl">
  3137. <xsl:value-of select="d:DestinationUrl/text()" />
  3138. </xsl:when>
  3139. <xsl:otherwise>
  3140. <xsl:value-of select="d:Action/d:LinkUrl/text()"/>
  3141. </xsl:otherwise>
  3142. </xsl:choose>
  3143. </xsl:variable>
  3144. <xsl:variable name="fForPay">
  3145. <xsl:choose>
  3146. <xsl:when test="d:Action/d:LinkUrl/@forPay = 'true' or d:Action/d:LinkUrl/@forPay = '1'">true</xsl:when>
  3147. <xsl:otherwise>false</xsl:otherwise>
  3148. </xsl:choose>
  3149. </xsl:variable>
  3150. <xsl:variable name="sDestination">
  3151. <xsl:choose>
  3152. <xsl:when test="d:DestinationUrl">
  3153. <xsl:value-of select="d:DestinationUrl/text()" />
  3154. </xsl:when>
  3155. <xsl:otherwise>
  3156. <xsl:value-of select="d:Action/d:LinkUrl/text()"/>
  3157. </xsl:otherwise>
  3158. </xsl:choose>
  3159. </xsl:variable>
  3160. <xsl:variable name="sImage">
  3161. <xsl:if test="d:Media and d:Media/@type='IMAGE'" >
  3162. <xsl:value-of select="d:Media/d:SrcUrl/." />
  3163. </xsl:if>
  3164. </xsl:variable>
  3165. <xsl:call-template name="Document">
  3166. <xsl:with-param name="sTitle" select="d:Title/text()" />
  3167. <xsl:with-param name="sDescription" select="d:Description/text()" />
  3168. <xsl:with-param name="sUrlDisplay" select="$sDisplayUrl" />
  3169. <xsl:with-param name="sUrlDestination" select="$sDestination" />
  3170. <xsl:with-param name="sUrlLink" select="d:Action/d:LinkUrl/text()" />
  3171. <xsl:with-param name="sUrlExtension" select="d:Action/d:LinkUrl/@fileExt" />
  3172. <xsl:with-param name="pRequery" select="d:Action/d:RequeryContext/*" />
  3173. <xsl:with-param name="sImage" select="$sImage" />
  3174. <xsl:with-param name="sImageAltText" select="d:Media/d:AltText/text()" />
  3175. <xsl:with-param name="fForPay" select="$fForPay" />
  3176. <xsl:with-param name="tRtl">
  3177. <xsl:choose>
  3178. <xsl:when test="d:Description/@rtl = 'true'  or d:Description/@rtl = '1'">true</xsl:when>
  3179. <xsl:when test="d:Description/@rtl = 'false' or d:Description/@rtl = '0'">false</xsl:when>
  3180. </xsl:choose>
  3181. </xsl:with-param>
  3182. </xsl:call-template>
  3183. </xsl:template>
  3184. <xsl:template match="@*|node()" mode="response">
  3185. <xsl:param name="mode" />
  3186. <xsl:param name="uri" />
  3187. <xsl:choose>
  3188. <xsl:when test="$mode='copy'"><xsl:copy>
  3189. <xsl:copy-of select="@*" />
  3190. <xsl:apply-templates mode="response">
  3191. <xsl:with-param name="mode" select="'copy'" />
  3192. <xsl:with-param name="uri" select="$uri" />
  3193. </xsl:apply-templates>
  3194. </xsl:copy>
  3195. </xsl:when>
  3196. <xsl:when test="$mode='encode'">
  3197. <xsl:choose>
  3198. <xsl:when test="local-name() != ''">
  3199. <xsl:variable name="szUri" select="namespace-uri()" />
  3200. <xsl:text><</xsl:text>
  3201. <xsl:value-of select="local-name()"/>
  3202. <xsl:if test="namespace-uri() != $uri">
  3203. <xsl:text> xmlns='</xsl:text>
  3204. <xsl:value-of select="namespace-uri()"/>
  3205. <xsl:text>'</xsl:text>
  3206. </xsl:if>
  3207. <xsl:for-each select="@*">
  3208. <xsl:text> </xsl:text>
  3209. <xsl:choose>
  3210. <xsl:when test="namespace-uri() != $szUri">
  3211. <xsl:value-of select="name()"/>
  3212. </xsl:when>
  3213. <xsl:otherwise>
  3214. <xsl:value-of select="local-name()"/>
  3215. </xsl:otherwise>
  3216. </xsl:choose>
  3217. <xsl:text>='</xsl:text>
  3218. <xsl:variable name="sTmp">
  3219. <xsl:value-of select="." />
  3220. </xsl:variable>
  3221. <xsl:value-of select="translate($sTmp, '<>&', '⋘⋙⋏')" />
  3222. <xsl:text>'</xsl:text>
  3223. </xsl:for-each>
  3224. <xsl:text>></xsl:text>
  3225. <xsl:apply-templates mode="response">
  3226. <xsl:with-param name="mode" select="'encode'" />
  3227. <xsl:with-param name="uri" select="namespace-uri()"/>
  3228. </xsl:apply-templates>
  3229. <xsl:text></</xsl:text>
  3230. <xsl:value-of select="local-name()"/>
  3231. <xsl:text>></xsl:text>
  3232. </xsl:when>
  3233. <xsl:otherwise>
  3234. <xsl:variable name="sTmp">
  3235. <xsl:value-of select="." />
  3236. </xsl:variable>
  3237. <xsl:value-of select="translate($sTmp, '<>&', '⋘⋙⋏')" />
  3238. </xsl:otherwise>
  3239. </xsl:choose>
  3240. </xsl:when>
  3241. </xsl:choose>
  3242. </xsl:template>
  3243. <xsl:template match="r:Response/r:Status">
  3244. <xsl:param name="idService" />
  3245. <xsl:variable name="sStatus">
  3246. <xsl:value-of select="./text()"/>
  3247. </xsl:variable>
  3248. <xsl:call-template name="Status">
  3249. <xsl:with-param name="sStatus" select="$sStatus" />
  3250. <xsl:with-param name="idService" select="$idService" />
  3251. </xsl:call-template>
  3252. </xsl:template>
  3253. <xsl:template name="ResponseResults">
  3254. <xsl:param name="idService" />
  3255. <xsl:param name="iStart" />
  3256. <xsl:param name="cSize" />
  3257. <xsl:param name="cMax" />
  3258. <xsl:param name="iCaller" />
  3259. <xsl:choose>
  3260. <xsl:when test="$iCaller = 1">
  3261. <xsl:if test="$cSize != '' and $cSize != '0'">
  3262. <xsl:call-template name="RangeNavigation">
  3263. <xsl:with-param name="iStart" select="$iStart" />
  3264. <xsl:with-param name="cSize" select="$cSize" />
  3265. <xsl:with-param name="cMax" select="$cMax" />
  3266. <xsl:with-param name="idService" select="$idService" />
  3267. <xsl:with-param name="sPosition" select="'top'" />
  3268. </xsl:call-template>
  3269. </xsl:if>
  3270. <xsl:apply-templates select="f:Form" />
  3271. </xsl:when>
  3272. <xsl:when test="$iCaller = 2">
  3273. <xsl:if test="$cSize != '' and $cSize != '0'">
  3274. <xsl:call-template name="RangeNavigation">
  3275. <xsl:with-param name="iStart" select="$iStart" />
  3276. <xsl:with-param name="cSize" select="$cSize" />
  3277. <xsl:with-param name="cMax" select="$cMax" />
  3278. <xsl:with-param name="idService" select="$idService" />
  3279. <xsl:with-param name="sPosition" select="'middle'" />
  3280. </xsl:call-template>
  3281. </xsl:if>
  3282. <xsl:apply-templates select="c:Content | d:Document" />
  3283. <xsl:if test="$cSize != '' and $cSize != '0'">
  3284. <xsl:call-template name="RangeNavigation">
  3285. <xsl:with-param name="iStart" select="$iStart" />
  3286. <xsl:with-param name="cSize" select="$cSize" />
  3287. <xsl:with-param name="cMax" select="$cMax" />
  3288. <xsl:with-param name="idService" select="$idService" />
  3289. <xsl:with-param name="sPosition" select="'bottom'" />
  3290. </xsl:call-template>
  3291. </xsl:if>
  3292. </xsl:when>
  3293. </xsl:choose>
  3294. </xsl:template>
  3295. <xsl:template match="r:Range/r:Results">
  3296. <xsl:param name="idService" />
  3297. <xsl:param name="sStatus" />
  3298. <xsl:param name="pOriginator" />
  3299. <xsl:param name="fAlwaysSearched" />
  3300. <xsl:param name="iStart" />
  3301. <xsl:param name="cSize" />
  3302. <xsl:param name="cMax" />
  3303. <xsl:call-template name="ServiceResult">
  3304. <xsl:with-param name="idService" select="$idService" />
  3305. <xsl:with-param name="spCallback" select="'ResponseResults'" />
  3306. <xsl:with-param name="sStatus" select="$sStatus" />
  3307. <xsl:with-param name="pOriginator" select="$pOriginator" />
  3308. <xsl:with-param name="iStart" select="$iStart" />
  3309. <xsl:with-param name="cSize" select="$cSize" />
  3310. <xsl:with-param name="cMax" select="$cMax" />
  3311. <xsl:with-param name="fAlwaysSearched" select="$fAlwaysSearched" />
  3312. </xsl:call-template>
  3313. </xsl:template>
  3314. <xsl:template match="r:Response/r:Range">
  3315. <xsl:param name="idService"/>
  3316. <xsl:param name="sStatus" />
  3317. <xsl:param name="pOriginator" />
  3318. <xsl:param name="fAlwaysSearched" />
  3319. <xsl:variable name="iStart" >
  3320. <xsl:if test="number(r:StartAt/text()) and r:StartAt/text() > 0">
  3321. <xsl:value-of select="r:StartAt/text()" />
  3322. </xsl:if>
  3323. </xsl:variable>
  3324. <xsl:variable name="cSize" >
  3325. <xsl:if test="number(r:Count/text()) and r:Count/text() > 0">
  3326. <xsl:value-of select="r:Count/text()" />
  3327. </xsl:if>
  3328. </xsl:variable>
  3329. <xsl:variable name="cMax" >
  3330. <xsl:if test="number(r:TotalAvailable/text()) and r:TotalAvailable/text() > 0">
  3331. <xsl:value-of select="r:TotalAvailable/text()" />
  3332. </xsl:if>
  3333. </xsl:variable>
  3334. <xsl:call-template name="Range">
  3335. <xsl:with-param name="pContext" select="r:Results" />
  3336. <xsl:with-param name="idService" select="$idService" />
  3337. <xsl:with-param name="iStart" select="$iStart" />
  3338. <xsl:with-param name="cSize" select="$cSize" />
  3339. <xsl:with-param name="cMax" select="$cMax" />
  3340. <xsl:with-param name="sStatus" select="$sStatus" />
  3341. <xsl:with-param name="pOriginator" select="$pOriginator" />
  3342. <xsl:with-param name="fAlwaysSearched" select="$fAlwaysSearched" />
  3343. </xsl:call-template>
  3344. </xsl:template>
  3345. <xsl:template match="/r:Response">
  3346. <xsl:variable name="iStart" >
  3347. <xsl:if test="number(r:Range/r:StartAt/text()) and r:Range/r:StartAt/text() > 0">
  3348. <xsl:value-of select="r:Range/r:StartAt/text()" />
  3349. </xsl:if>
  3350. </xsl:variable>
  3351. <xsl:variable name="cSize" >
  3352. <xsl:if test="number(r:Range/r:Count/text()) and r:Range/r:Count/text() > 0">
  3353. <xsl:value-of select="r:Range/r:Count/text()" />
  3354. </xsl:if>
  3355. </xsl:variable>
  3356. <xsl:variable name="cMax" >
  3357. <xsl:if test="number(r:Range/r:TotalAvailable/text()) and r:Range/r:TotalAvailable/text() > 0">
  3358. <xsl:value-of select="r:Range/r:TotalAvailable/text()" />
  3359. </xsl:if>
  3360. </xsl:variable>
  3361. <xsl:call-template name="Range">
  3362. <xsl:with-param name="pContext" select="r:Range/r:Results" />
  3363. <xsl:with-param name="idService" select="@domain" />
  3364. <xsl:with-param name="iStart" select="$iStart" />
  3365. <xsl:with-param name="cSize" select="$cSize" />
  3366. <xsl:with-param name="cMax" select="$cMax" />
  3367. </xsl:call-template>
  3368. </xsl:template>
  3369. <xsl:template match="r:ResponsePacket/r:Response">
  3370. <xsl:variable name="sStatus">
  3371. <xsl:value-of select="r:Status/text()" />
  3372. </xsl:variable>
  3373. <xsl:variable name="fAlwaysSearched"><xsl:choose>
  3374. <xsl:when test="@category = 'always_searched'">true</xsl:when>
  3375. <xsl:otherwise>false</xsl:otherwise>
  3376. </xsl:choose>
  3377. </xsl:variable>
  3378. <xsl:choose>
  3379. <xsl:when test="$sStatus='SUCCESS'">
  3380. <xsl:call-template name="QueryResponse">
  3381. <xsl:with-param name="pContext" select="r:Range" />
  3382. <xsl:with-param name="idService" select="@domain" />
  3383. <xsl:with-param name="fRequery" select="'false'" />
  3384. <xsl:with-param name="pOriginator" select="r:RequeryContext/*" />
  3385. <xsl:with-param name="sStatus" select="$sStatus" />
  3386. <xsl:with-param name="fAlwaysSearched" select="$fAlwaysSearched" />
  3387. </xsl:call-template>
  3388. </xsl:when>
  3389. <xsl:otherwise>
  3390. <xsl:call-template name="ServiceResult">
  3391. <xsl:with-param name="idService" select="@domain" />
  3392. <xsl:with-param name="sStatus" select="$sStatus" />
  3393. <xsl:with-param name="pOriginator" select="r:RequeryContext/*" />
  3394. <xsl:with-param name="fAlwaysSearched" select="$fAlwaysSearched" />
  3395. </xsl:call-template>
  3396. </xsl:otherwise>
  3397. </xsl:choose>
  3398. </xsl:template>
  3399. <xsl:template match="/r:ResponsePacket">
  3400. <xsl:choose>
  3401. <xsl:when test="r:Response">
  3402. <xsl:call-template name="NewQueryResponse">
  3403. <xsl:with-param name="pContext" select="r:Response" />
  3404. <xsl:with-param name="sRevision" select="@revision" />
  3405. <xsl:with-param name="sBuild" select="@build" />
  3406. </xsl:call-template>
  3407. </xsl:when>
  3408. <xsl:otherwise>
  3409. <xsl:call-template name="ServiceResult">
  3410. <xsl:with-param name="idService" select="''" />
  3411. <xsl:with-param name="sStatus" select="'ERROR_BAD_RESULTS'" />
  3412. <xsl:with-param name="fAlwaysSearched" select="'false'" />
  3413. </xsl:call-template>
  3414. </xsl:otherwise>
  3415. </xsl:choose>
  3416. </xsl:template>
  3417. <xsl:output method="xml" />
  3418. <msxsl:script language="JavaScript" implements-prefix="math">
  3419. <![CDATA[ function random(){ return Math.random(); } ]]>
  3420. </msxsl:script>
  3421. <xsl:template match="/">
  3422. <xsl:apply-templates select="/r:ResponsePacket" />
  3423. </xsl:template>
  3424. </xsl:stylesheet>
  3425.